mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
- Fixed possible assertion in Scheduling.cpp
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@4881 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -1167,10 +1167,15 @@ void PostNextSchedule( SOLDIERTYPE *pSoldier )
|
||||
usBestTime = NUM_MIN_IN_DAY - (usTime - pSchedule->usTime[ i ]);
|
||||
iBestIndex = i;
|
||||
}
|
||||
}
|
||||
Assert( iBestIndex >= 0 );
|
||||
}
|
||||
|
||||
AddStrategicEvent( EVENT_PROCESS_TACTICAL_SCHEDULE, GetWorldDayInMinutes() + pSchedule->usTime[iBestIndex], pSchedule->ubScheduleID );
|
||||
// WANNE: Removed the assertion and added the check instead
|
||||
//Assert( iBestIndex >= 0 );
|
||||
|
||||
if (iBestIndex >= 0)
|
||||
{
|
||||
AddStrategicEvent( EVENT_PROCESS_TACTICAL_SCHEDULE, GetWorldDayInMinutes() + pSchedule->usTime[iBestIndex], pSchedule->ubScheduleID );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user