(svn r23312) -Fix [FS#4849]: assertion could be triggered in case a station was removed just after a vehicle delivered cargo to it

pull/155/head
rubidium 13 years ago
parent e271463efa
commit b2830546b8

@ -3027,8 +3027,8 @@ void TriggerWatchedCargoCallbacks(Station *st)
*/
static bool StationHandleBigTick(BaseStation *st)
{
if (!st->IsInUse() && ++st->delete_ctr >= 8) {
delete st;
if (!st->IsInUse()) {
if (++st->delete_ctr >= 8) delete st;
return false;
}

Loading…
Cancel
Save