This fixes losing of variables when loading from a savegame. Fixes bug #8308.

This commit is contained in:
Jörg Hinrichs 2007-01-20 12:47:15 +00:00
parent 75fcf19b35
commit fb1051349b

View file

@ -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;