remove segment fault when loading some save game

...and also remove bug with segment fault during creating debug unit
This commit is contained in:
Josef Redinger 2006-09-24 20:03:29 +00:00
parent 22bd287b5f
commit 4352abd37c

View File

@ -522,7 +522,14 @@ config* replay::get_next_action()
void replay::pre_replay()
{
if ((rng::random() == NULL) && (commands().size() > 0)){
set_random(commands()[pos_]);
if (at_end())
{
add_command(true);
}
else
{
set_random(commands()[pos_]);
}
}
}