Fix bug: Crash loading replay

For reproduce: play a scene, when the next settles down use Menu|Load to load the replay just created for the previous scene.

gtgftd suggested this patch. Seems to work. PR to document change for review.
This commit is contained in:
Gregory A Lundberg 2016-09-10 21:25:07 -05:00
parent 659e482e01
commit 07d609632c

View file

@ -138,6 +138,8 @@ bool loadgame::load_game_ingame()
}
}
load_data_.show_replay |= is_replay_save(load_data_.summary);
// Confirm the integrity of the file before throwing the exception.
// Use the summary in the save_index for this.
const config & summary = save_index_manager.get(load_data_.filename);