Skip to content

Commit

Permalink
Merge pull request godotengine#65697 from Faless/mp/4.x_spawner_crash
Browse files Browse the repository at this point in the history
[Multiplayer] Fix crash in spawner get_spawnable_scene.
  • Loading branch information
Faless committed Sep 12, 2022
2 parents f211869 + cdc57a7 commit dbab737
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/multiplayer/multiplayer_spawner.cpp
Expand Up @@ -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() {
Expand Down

0 comments on commit dbab737

Please sign in to comment.