mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 10:03:45 +01:00
Make camera clear error message if there's no error
This commit is contained in:
parent
5659434d32
commit
3ef0b4e637
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user