mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-02 19:41:15 +00:00
fixed WML variable population when loading midgame saves with 'show replay'
This commit is contained in:
parent
4943990cca
commit
46faf6d29a
@ -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())
|
||||
|
Loading…
x
Reference in New Issue
Block a user