Mess with some array sizes.

This commit is contained in:
Nicholas Hastings 2015-02-08 20:30:15 -05:00
parent 350eb462ca
commit 6bc2d20177
3 changed files with 3 additions and 5 deletions

View File

@ -159,7 +159,7 @@ void PlayerConditionsMgr::Shutdown()
void PlayerConditionsMgr::OnClientPutInServer(int client) void PlayerConditionsMgr::OnClientPutInServer(int client)
{ {
memset(&m_OldConds[client], 0, CondVar_Count * sizeof(int)); memset(&m_OldConds[client], 0, sizeof(m_OldConds[0]));
} }
PlayerConditionsMgr g_CondMgr; PlayerConditionsMgr g_CondMgr;

View File

@ -68,9 +68,9 @@ private:
template<CondVar var> template<CondVar var>
bool SetupProp(const char *varname); bool SetupProp(const char *varname);
private: private:
int m_OldConds[TF_MAXPLAYERS + 1][CondVar_Count]; int m_OldConds[SM_MAXPLAYERS + 1][CondVar_LastNotifyProp];
sm_sendprop_info_t m_CondVarProps[CondVar_Count]; sm_sendprop_info_t m_CondVarProps[CondVar_Count];
SendVarProxyFn m_BackupProxyFns[CondVar_Count]; SendVarProxyFn m_BackupProxyFns[CondVar_LastNotifyProp];
}; };
extern PlayerConditionsMgr g_CondMgr; extern PlayerConditionsMgr g_CondMgr;

View File

@ -42,8 +42,6 @@
#include <server_class.h> #include <server_class.h>
#include <igameevents.h> #include <igameevents.h>
const int TF_MAXPLAYERS = 33;
namespace SourceMod { namespace SourceMod {
class ISDKTools; class ISDKTools;
} }