Skip to content

Commit

Permalink
Call ClearDHooksDefinitions
Browse files Browse the repository at this point in the history
  • Loading branch information
M60TM committed Sep 5, 2023
1 parent eb1a82e commit 3e83c9c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripting/tf2_sentryfirebullet.sp
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ public void OnPluginStart() {
g_DHookSentryFireBullet = GetDHooksHookDefinition(data, "CBaseEntity::FireBullets");
g_DHookSentryFireBullet.AddParam(HookParamType_Int);

ClearDHooksDefinitions();
delete data;

g_FwdSentryFireBulletPre = new GlobalForward("TF2_SentryFireBullet", ET_Hook, Param_Cell, Param_Cell, Param_CellByRef, Param_Array, Param_Array, Param_Array, Param_FloatByRef, Param_CellByRef, Param_FloatByRef, Param_CellByRef, Param_CellByRef, Param_FloatByRef, Param_CellByRef, Param_CellByRef);
Expand Down

0 comments on commit 3e83c9c

Please sign in to comment.