fix: load_level now called *after* instantiating game state
parent
b07f0e299e
commit
885d843cda
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue