fix: load_level now called *after* instantiating game state

main
Sara 2024-10-22 15:41:55 +02:00
parent b07f0e299e
commit 885d843cda
1 changed files with 1 additions and 1 deletions

View File

@ -44,9 +44,9 @@ void GameRoot3D::_enter_tree() {
} }
void GameRoot3D::_ready() { void GameRoot3D::_ready() {
this->load_level(this->first_boot_level);
// TODO: try load save data from file. // TODO: try load save data from file.
this->game_state = this->game_state_prototype->duplicate(true); this->game_state = this->game_state_prototype->duplicate(true);
this->load_level(this->first_boot_level);
} }
void GameRoot3D::_exit_tree() { void GameRoot3D::_exit_tree() {