Move m_CondOffset initialization to ctor.

This commit is contained in:
Nicholas Hastings
2015-02-18 12:32:45 -08:00
parent ac530a4ce0
commit e8765c5d3d
2 changed files with 5 additions and 1 deletions
+4 -1
View File
@@ -136,14 +136,17 @@ bool PlayerConditionsMgr::SetupProp(const char *varname)
return true;
}
bool PlayerConditionsMgr::Init()
PlayerConditionsMgr::PlayerConditionsMgr()
{
m_CondOffset[m_nPlayerCond] = 0;
m_CondOffset[_condition_bits] = 0;
m_CondOffset[m_nPlayerCondEx] = 32;
m_CondOffset[m_nPlayerCondEx2] = 64;
m_CondOffset[m_nPlayerCondEx3] = 96;
}
bool PlayerConditionsMgr::Init()
{
memset(m_BackupProxyFns, 0, sizeof(m_BackupProxyFns));
bool bFoundProps = SetupProp<m_nPlayerCond>("m_nPlayerCond")
+1
View File
@@ -39,6 +39,7 @@ struct CondChangeData_t;
class PlayerConditionsMgr : public IClientListener
{
public:
PlayerConditionsMgr();
bool Init();
void Shutdown();
public: // IClientListener