Fixes bug #8526 (autosave names messed up)

This commit is contained in:
Jörg Hinrichs 2007-02-25 00:08:00 +00:00
parent e8c5503a5d
commit 707ab3d09c

View file

@ -152,6 +152,10 @@ LEVEL_RESULT play_game(display& disp, game_state& gamestate, const config& game_
if(gamestate.snapshot.child("variables") != NULL) { if(gamestate.snapshot.child("variables") != NULL) {
gamestate.set_variables(*gamestate.snapshot.child("variables")); gamestate.set_variables(*gamestate.snapshot.child("variables"));
} }
//Replace game label with that from snapshot
if (!state.snapshot["label"].empty()){
state.label = state.snapshot["label"];
}
//get the current gold values of players so they don't start with the amount //get the current gold values of players so they don't start with the amount
//they had at the start of the scenario //they had at the start of the scenario
const std::vector<config*>& player_cfg = gamestate.snapshot.get_children("player"); const std::vector<config*>& player_cfg = gamestate.snapshot.get_children("player");