Fixes bug #8526 (autosave names messed up)
This commit is contained in:
parent
e8c5503a5d
commit
707ab3d09c
1 changed files with 7 additions and 3 deletions
|
@ -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");
|
||||||
|
|
Loading…
Add table
Reference in a new issue