diff options
author | ShadowNinja <shadowninja@minetest.net> | 2015-03-27 22:20:10 -0400 |
---|---|---|
committer | ShadowNinja <shadowninja@minetest.net> | 2015-03-27 22:20:10 -0400 |
commit | 3ef0b4e6379944ec7e3ccbfc7fe26ab7f9158fc9 (patch) | |
tree | 0934bc52dd809e1771b68e191ff12725ef7cc3bc | |
parent | 5659434d3286634dcf96c0ce503ec5367b140f6b (diff) | |
download | minetest-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.cpp | 2 |
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(); } |