Fix clients being invalid when passed to OnEntityDestroyed (bug 6119, r=KyleS).
--HG-- extra : rebase_source : 546168635b7e7cd8f8c4302858aa258025444dfd
This commit is contained in:
@@ -244,6 +244,7 @@ public: // IEntityListener
|
||||
|
||||
public: // IClientListener
|
||||
virtual void OnClientPutInServer(int client);
|
||||
virtual void OnClientDisconnecting(int client);
|
||||
|
||||
public: // ISDKHooks
|
||||
virtual void AddEntityListener(ISMEntityListener *listener);
|
||||
@@ -330,6 +331,7 @@ public:
|
||||
bool Hook_WeaponSwitchPost(CBaseCombatWeapon *pWeapon, int viewmodelindex);
|
||||
|
||||
private:
|
||||
void HandleEntityDeleted(CBaseEntity *pEntity, int ref);
|
||||
void Unhook(CBaseEntity *pEntity);
|
||||
void Unhook(IPluginContext *pContext);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user