fix crash when loading a replay stored on the server #1762

This commit is contained in:
gfgtdf 2017-06-10 22:57:23 +02:00 committed by GitHub
parent 7537272bb2
commit 8b0c9af52d

View file

@ -182,6 +182,10 @@ bool loadgame::load_game()
read_save_file(load_data_.filename, load_data_.load_config, &error_log);
convert_old_saves(load_data_.load_config);
for (config& side : load_data_.load_config.child_range("side")) {
side.remove_attribute("is_local");
}
if(!error_log.empty()) {
try {