FixPointTeleport: potentially fix crash issue.
This commit is contained in:
parent
cd15f02ca1
commit
eb76f695c5
@ -4,8 +4,8 @@
|
||||
#include <sdktools>
|
||||
#include <dhooks>
|
||||
|
||||
Handle hTeleport;
|
||||
Handle hFallInit;
|
||||
Handle hTeleport;
|
||||
|
||||
//----------------------------------------------------------------------------------------------------
|
||||
// Purpose:
|
||||
@ -87,6 +87,9 @@ public void OnEntityCreated(int entity, const char[] classname)
|
||||
// Purpose:
|
||||
//----------------------------------------------------------------------------------------------------
|
||||
public MRESReturn OnEntityTeleport(int entity, Handle hParams)
|
||||
{
|
||||
if (IsValidEntity(entity))
|
||||
{
|
||||
SDKCall(hFallInit, entity);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user