Make camera clear error message if there's no error
authorShadowNinja <shadowninja@minetest.net>
Sat, 28 Mar 2015 02:20:10 +0000 (22:20 -0400)
committerShadowNinja <shadowninja@minetest.net>
Sat, 28 Mar 2015 02:20:10 +0000 (22:20 -0400)
src/camera.cpp

index 111a4b241dfb275484a4c90e0b945ffb2d97066c..0152f704112b63cbf6ca68c0589fa20428749b02 100644 (file)
@@ -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();
 }