This fixes losing of variables when loading from a savegame. Fixes bug #8308.
This commit is contained in:
parent
75fcf19b35
commit
fb1051349b
1 changed files with 1 additions and 0 deletions
|
@ -143,6 +143,7 @@ LEVEL_RESULT play_game(display& disp, game_state& gamestate, const config& game_
|
|||
LOG_G << "loading snapshot...\n";
|
||||
starting_pos = gamestate.starting_pos;
|
||||
scenario = &gamestate.snapshot;
|
||||
gamestate.variables = *gamestate.snapshot.child("variables");
|
||||
}
|
||||
|
||||
controller_map controllers;
|
||||
|
|
Loading…
Add table
Reference in a new issue