Fix Segmentation Fault when Show Enemy Moves is off.

Seems like display should be handed around instead of acceleration
parameter and the magic "5"?
This commit is contained in:
Rusty Russell 2006-03-25 08:33:23 +00:00
parent 04ac1b2122
commit a6a9cdd652

View file

@ -163,7 +163,7 @@ std::string recruit_unit(const gamemap& map, int side,
}
}
un->second.set_standing(disp->turbo()?5:1);
un->second.set_standing(disp && disp->turbo()?5:1);
LOG_NG << "firing recruit event\n";
game_events::fire("recruit",recruit_location);