- bug fix: reinforcements

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@636 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Lesh
2006-11-19 14:04:11 +00:00
parent ff814b7fc7
commit 49c33bfdfb
+15
View File
@@ -2372,6 +2372,11 @@ void AddSoldierInitListMilitiaOnEdge( UINT8 ubStrategicInsertionCode, UINT8 ubNu
ubTotalSoldiers--;
pSoldier = TacticalCreateMilitia(SOLDIER_CLASS_ELITE_MILITIA);
// Lesh: if pSoldier is NULL then no slot for a new men or other problems
// it better to leave this function is such case
if ( !pSoldier )
return;
pSoldier->bOrders = ONGUARD;
pSoldier->ubInsertionDirection = bDesiredDirection;
@@ -2397,6 +2402,11 @@ void AddSoldierInitListMilitiaOnEdge( UINT8 ubStrategicInsertionCode, UINT8 ubNu
ubTotalSoldiers--;
pSoldier = TacticalCreateMilitia(SOLDIER_CLASS_REG_MILITIA);
// Lesh: if pSoldier is NULL then no slot for a new men or other problems
// it better to leave this function is such case
if ( !pSoldier )
return;
pSoldier->bOrders = ONGUARD;
pSoldier->ubInsertionDirection = bDesiredDirection;
@@ -2422,6 +2432,11 @@ void AddSoldierInitListMilitiaOnEdge( UINT8 ubStrategicInsertionCode, UINT8 ubNu
ubTotalSoldiers--;
pSoldier = TacticalCreateMilitia(SOLDIER_CLASS_GREEN_MILITIA);
// Lesh: if pSoldier is NULL then no slot for a new men or other problems
// it better to leave this function is such case
if ( !pSoldier )
return;
pSoldier->bOrders = ONGUARD;
pSoldier->ubInsertionDirection = bDesiredDirection;