Skip to content
Permalink
Browse files

Save the reference instead of index.

TTT_GetGrabEntity returns the entity reference, so we should save the reference in g_iRagdoll.

#441
  • Loading branch information
Bara committed Oct 22, 2019
1 parent 79db3bd commit 9589a8026464b0b30a029ae362c7c0880ad19dea
Showing with 1 addition and 1 deletion.
  1. +1 −1 addons/sourcemod/scripting/ttt/ttt_revive.sp
@@ -217,7 +217,7 @@ public Action TTT_OnGrabbing(int client, int entity)
if (StrEqual(sClass, "prop_ragdoll", false))
{
g_bInUse[client] = true;
g_iRagdoll[client] = entity;
g_iRagdoll[client] = EntIndexToEntRef(entity);

DataPack pack = new DataPack();
g_hTimer[client] = CreateTimer(1.0, Timer_Revive, pack, TIMER_FLAG_NO_MAPCHANGE | TIMER_REPEAT);

0 comments on commit 9589a80

Please sign in to comment.
You can’t perform that action at this time.