mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-11-21 16:37:20 +01:00
Don't print error when there is no default NavigationMeshGenerator.
This commit is contained in:
parent
7a6f6aa8ef
commit
562fe84f67
@ -142,7 +142,9 @@ int NavigationMeshGeneratorManager::find_server_id(const String &p_name) const {
|
||||
}
|
||||
|
||||
NavigationMeshGenerator *NavigationMeshGeneratorManager::new_default_server() const {
|
||||
ERR_FAIL_COND_V(default_server_id == -1, nullptr);
|
||||
if (default_server_id == -1) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
NavigationMeshGenerator *gen = navigation_mesh_generators[default_server_id].create_callback();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user