Skip to content

Commit

Permalink
Fix for #37
Browse files Browse the repository at this point in the history
  • Loading branch information
DJPlaya committed Apr 13, 2020
1 parent 1b5fe35 commit cb1bd15
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
Binary file modified plugins/kigen-ac_redux.smx
Binary file not shown.
Binary file modified plugins/kigen-ac_redux_legacy.smx
Binary file not shown.
2 changes: 1 addition & 1 deletion scripting/1.10/kigen-ac_redux/eyetest.sp
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ public Action Eyetest_Equip(client, weapon) // The Player Picked up a Weapon? Le

public Action Eyetest_Drop(client, weapon)
{
if (g_iWeaponOwner[weapon] >= 1) // Is a Player linked to the Entity? Else we do not Care // TODO: Array index out-of-bounds (index -1, limit 4096) - Issue #13
if (weapon > 0 && g_iWeaponOwner[weapon] > 0) // Is a Player linked to the Entity? Else we do not Care // Check if the Weapon exists first, it may got deleted in the same Frame, Bugfix for #37
{
g_iWeaponOwner[weapon] = 0;
SDKUnhook(weapon, SDKHook_SetTransmit, Eyetest_WeaponTransmit);
Expand Down
2 changes: 1 addition & 1 deletion scripting/1.8/kigen-ac_redux/eyetest.sp
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ public Action Eyetest_Equip(client, weapon) // The Player Picked up a Weapon? Le

public Action Eyetest_Drop(client, weapon)
{
if (g_iWeaponOwner[weapon] >= 1) // Is a Player linked to the Entity? Else we do not Care // TODO: Array index out-of-bounds (index -1, limit 4096) - Issue #13
if (weapon > 0 && g_iWeaponOwner[weapon] > 0) // Is a Player linked to the Entity? Else we do not Care // Check if the Weapon exists first, it may got deleted in the same Frame, Bugfix for #37
{
g_iWeaponOwner[weapon] = 0;
SDKUnhook(weapon, SDKHook_SetTransmit, Eyetest_WeaponTransmit);
Expand Down

0 comments on commit cb1bd15

Please sign in to comment.