mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +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
|
||||
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( )
|
||||
{
|
||||
if ( this == NULL )
|
||||
|
||||
Reference in New Issue
Block a user