Fix possible crash when unloading cstrike extension. (irc, r=KyleS)

This commit is contained in:
Dr!fter 2014-02-12 23:59:57 -05:00
parent c546e59c80
commit 9223c714b3

View File

@ -502,8 +502,8 @@ static cell_t CS_GetWeaponPrice(IPluginContext *pContext, const cell_t *params)
ret.type = PassType_Basic; ret.type = PassType_Basic;
ret.size = sizeof(void *); ret.size = sizeof(void *);
g_RegNatives.Register(pGetView);
pGetView = g_pBinTools->CreateVCall(offset, 0, 0, &ret, pass, 2); pGetView = g_pBinTools->CreateVCall(offset, 0, 0, &ret, pass, 2);
g_RegNatives.Register(pGetView);
} }
} }