mirror of
https://github.com/1dot13/source.git
synced 2026-09-09 14:46:05 +02:00
Use SoldierID
This commit is contained in:
+3
-2
@@ -980,7 +980,8 @@ void BtnFileBoxButtonCallback(GUI_BUTTON *btn,INT32 reason)
|
||||
void DailyUpdateOfMercSite( UINT16 usDate)
|
||||
{
|
||||
SOLDIERTYPE *pSoldier;
|
||||
INT16 sSoldierID, i;
|
||||
SoldierID sSoldierID;
|
||||
INT16 i;
|
||||
UINT8 ubMercID;
|
||||
INT32 iNumDays;
|
||||
|
||||
@@ -1006,7 +1007,7 @@ void DailyUpdateOfMercSite( UINT16 usDate)
|
||||
// continue;
|
||||
|
||||
sSoldierID = GetSoldierIDFromMercID( ubMercID );
|
||||
pSoldier = MercPtrs[ sSoldierID ];
|
||||
pSoldier = sSoldierID;
|
||||
|
||||
//if the merc is dead, dont advance the contract length
|
||||
if( !IsMercDead( pSoldier->ubProfile ) )
|
||||
|
||||
Reference in New Issue
Block a user