From 3ef0b4e6379944ec7e3ccbfc7fe26ab7f9158fc9 Mon Sep 17 00:00:00 2001 From: ShadowNinja Date: Fri, 27 Mar 2015 22:20:10 -0400 Subject: [PATCH] Make camera clear error message if there's no error --- src/camera.cpp | 2 ++ 1 file changed, 2 insertions(+) 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(); } -- 2.25.1