load the recall list with a start of scenario save (bug #10444)

This commit is contained in:
Mark de Wever 2007-12-25 19:09:45 +00:00
parent c9924cf32d
commit db4ce077b9
3 changed files with 6 additions and 1 deletions

View file

@ -45,6 +45,7 @@ Version 1.3.12+svn:
make sure it stays in sync
* units spawned with unit in events can now have random traits and also the
names are the same (bug #10501)
* load the recall list with a start of scenario save (bug #10444)
* miscellaneous and bug fixes:
* various bug fixes and code cleanups
* added gzip and gunzip command line parameters

View file

@ -36,6 +36,7 @@ Version 1.3.12+svn:
* Miscellaneous and bug fixes
* Replaced the 'Binary Saves' option with 'Compressed Saves' and now
writes gzip files.
* Load the recall list with a start of scenario save.
Version 1.3.12:
* campaigns

View file

@ -464,7 +464,10 @@ game_state::game_state(const game_data& data, const config& cfg) :
seed_random(random_seed_, lexical_cast_default<unsigned>((*snapshot)["random_calls"]));
const config::child_list& players = snapshot->get_children("player");
// With a start of scenario save there's an empty scenario and the recall list is stored
// in the player.
const config::child_list& players = snapshot->empty() ?
cfg.get_children("player") : snapshot->get_children("player");
if(!players.empty()) {
for(config::child_list::const_iterator i = players.begin(); i != players.end(); ++i) {