Skip to content

Commit 3ef0b4e

Browse files
committedMar 28, 2015
Make camera clear error message if there's no error
1 parent 5659434 commit 3ef0b4e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎src/camera.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,8 @@ bool Camera::successfullyCreated(std::string &error_message)
131131
error_message = "Failed to create the wielded item scene manager";
132132
} else if (!m_wieldnode) {
133133
error_message = "Failed to create the wielded item scene node";
134+
} else {
135+
error_message.clear();
134136
}
135137
return error_message.empty();
136138
}

0 commit comments

Comments
 (0)
Please sign in to comment.