fixed WML variable population when loading midgame saves with 'show replay'

This commit is contained in:
Eugen Jiresch 2009-09-21 15:04:40 +00:00
parent 4943990cca
commit 46faf6d29a

View File

@ -82,6 +82,11 @@ void play_replay(display& disp, game_state& gamestate, const config& game_config
}
starting_pos = gamestate.starting_pos;
//for replays, use the variables specified in starting_pos
if (const config &vars = starting_pos.child("variables")) {
gamestate.set_variables(vars);
}
try {
// Preserve old label eg. replay
if (gamestate.classification().label.empty())