1.1 --- a/extensions/cstrike/natives.cpp Sun Aug 26 23:33:11 2012 -0400
1.2 +++ b/extensions/cstrike/natives.cpp Sun Aug 26 23:33:11 2012 -0400
1.3 @@ -210,17 +210,17 @@
1.4 }
1.5
1.6 //Psychonic is awesome for this
1.7 - sm_sendprop_info_t *spi = new sm_sendprop_info_t;
1.8 + sm_sendprop_info_t spi;
1.9 IServerUnknown *pUnk = (IServerUnknown *)pWeapon;
1.10 IServerNetworkable *pNet = pUnk->GetNetworkable();
1.11
1.12 - if (!UTIL_FindDataTable(pNet->GetServerClass()->m_pTable, "DT_WeaponCSBase", spi, 0))
1.13 + if (!UTIL_FindDataTable(pNet->GetServerClass()->m_pTable, "DT_WeaponCSBase", &spi, 0))
1.14 return pContext->ThrowNativeError("Entity index %d is not a weapon", params[2]);
1.15
1.16 - if (!gamehelpers->FindSendPropInfo("CBaseCombatWeapon", "m_hOwnerEntity", spi))
1.17 + if (!gamehelpers->FindSendPropInfo("CBaseCombatWeapon", "m_hOwnerEntity", &spi))
1.18 return pContext->ThrowNativeError("Invalid entity index %d for weapon", params[2]);
1.19
1.20 - CBaseHandle &hndl = *(CBaseHandle *)((uint8_t *)pWeapon + spi->actual_offset);
1.21 + CBaseHandle &hndl = *(CBaseHandle *)((uint8_t *)pWeapon + spi.actual_offset);
1.22 if (params[1] != hndl.GetEntryIndex())
1.23 return pContext->ThrowNativeError("Weapon %d is not owned by client %d", params[2], params[1]);
1.24