- 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:
Wanne
2012-01-09 11:13:25 +00:00
parent a68e81086b
commit c42d68ff0f
+7 -2
View File
@@ -1168,9 +1168,14 @@ void PostNextSchedule( SOLDIERTYPE *pSoldier )
iBestIndex = 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 );
}
} }