mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-03-03 17:25:27 +03:00
Fix VS2013 compile in protagonist system
This commit is contained in:
parent
2c189199fe
commit
c69bad6c2a
@ -488,7 +488,7 @@ int CProtagonistSystem::DoGetProtagonist_PlayerModelBody( ProtagonistData_t &pPr
|
||||
|
||||
const char *CProtagonistSystem::DoGetProtagonist_HandModel( ProtagonistData_t &pProtag, const CBaseCombatWeapon *pWeapon )
|
||||
{
|
||||
int nRigType = pWeapon->GetHandRig();
|
||||
int nRigType = pWeapon ? pWeapon->GetHandRig() : HANDRIG_DEFAULT;
|
||||
if (pProtag.pszHandModels[nRigType])
|
||||
return pProtag.pszHandModels[nRigType];
|
||||
|
||||
|
@ -34,7 +34,10 @@ private:
|
||||
{
|
||||
ProtagonistData_t()
|
||||
{
|
||||
|
||||
#ifndef CLIENT_DLL
|
||||
for (int i = 0; i < NUM_HAND_RIG_TYPES; i++)
|
||||
pszHandModels[i] = NULL;
|
||||
#endif
|
||||
}
|
||||
|
||||
char szName[MAX_PROTAGONIST_NAME];
|
||||
@ -49,7 +52,7 @@ private:
|
||||
int nPlayerBody = -1;
|
||||
|
||||
// Hands
|
||||
const char *pszHandModels[NUM_HAND_RIG_TYPES] = {};
|
||||
const char *pszHandModels[NUM_HAND_RIG_TYPES];
|
||||
int nHandSkin = -1;
|
||||
int nHandBody = -1;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user