mirror of
https://github.com/godotengine/godot
synced 2024-09-15 21:20:08 +00:00
[Multiplayer] Fix crash in spawner get_spawnable_scene.
This commit is contained in:
parent
f211869530
commit
cdc57a7f58
|
@ -101,6 +101,7 @@ int MultiplayerSpawner::get_spawnable_scene_count() const {
|
|||
return spawnable_scenes.size();
|
||||
}
|
||||
String MultiplayerSpawner::get_spawnable_scene(int p_idx) const {
|
||||
ERR_FAIL_INDEX_V(p_idx, (int)spawnable_scenes.size(), "");
|
||||
return spawnable_scenes[p_idx].path;
|
||||
}
|
||||
void MultiplayerSpawner::clear_spawnable_scenes() {
|
||||
|
|
Loading…
Reference in a new issue