aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShadowNinja <shadowninja@minetest.net>2015-03-27 22:20:10 -0400
committerShadowNinja <shadowninja@minetest.net>2015-03-27 22:20:10 -0400
commit3ef0b4e6379944ec7e3ccbfc7fe26ab7f9158fc9 (patch)
tree0934bc52dd809e1771b68e191ff12725ef7cc3bc
parent5659434d3286634dcf96c0ce503ec5367b140f6b (diff)
downloadminetest-3ef0b4e6379944ec7e3ccbfc7fe26ab7f9158fc9.tar.gz
minetest-3ef0b4e6379944ec7e3ccbfc7fe26ab7f9158fc9.tar.bz2
minetest-3ef0b4e6379944ec7e3ccbfc7fe26ab7f9158fc9.zip
Make camera clear error message if there's no error
-rw-r--r--src/camera.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/camera.cpp b/src/camera.cpp
index 111a4b241..0152f7041 100644
--- a/src/camera.cpp
+++ b/src/camera.cpp
@@ -131,6 +131,8 @@ bool Camera::successfullyCreated(std::string &error_message)
error_message = "Failed to create the wielded item scene manager";
} else if (!m_wieldnode) {
error_message = "Failed to create the wielded item scene node";
+ } else {
+ error_message.clear();
}
return error_message.empty();
}