aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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();
}