mirror of
https://github.com/1dot13/source.git
synced 2026-09-09 14:46:05 +02:00
Initialize SOLDIERTYPE SoldierIDs to NOBODY
memset in initialize() function sets them all to zero
This commit is contained in:
@@ -1142,8 +1142,25 @@ void SOLDIERTYPE::initialize( )
|
|||||||
|
|
||||||
// sevenfm:initialize additional data
|
// sevenfm:initialize additional data
|
||||||
this->InitializeExtraData();
|
this->InitializeExtraData();
|
||||||
|
|
||||||
|
// Initialize all SoldierID fields to NOBODY. 0 is a valid value!
|
||||||
|
this->ubID = NOBODY;
|
||||||
|
this->ubOppNum = NOBODY;
|
||||||
|
this->ubAttackerID = NOBODY;
|
||||||
|
this->ubPreviousAttackerID = NOBODY;
|
||||||
|
this->ubServicePartner = NOBODY;
|
||||||
|
this->ubSuppressorID = NOBODY;
|
||||||
|
this->ubTargetID = NOBODY;
|
||||||
|
this->ubAutoBandagingMedic = NOBODY;
|
||||||
|
this->ubRobotRemoteHolderID = NOBODY;
|
||||||
|
this->ubCTGTTargetID = NOBODY;
|
||||||
|
this->bOverrideMoveSpeed = NOBODY;
|
||||||
|
this->ubNextToPreviousAttackerID = NOBODY;
|
||||||
|
this->usDragPersonID = NOBODY;
|
||||||
|
this->usChatPartnerID = NOBODY;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool SOLDIERTYPE::exists( )
|
bool SOLDIERTYPE::exists( )
|
||||||
{
|
{
|
||||||
if ( this == NULL )
|
if ( this == NULL )
|
||||||
|
|||||||
Reference in New Issue
Block a user