entWatch: Re-add triggerid's and dont erase item on weapon death.

This commit is contained in:
zaCade
2019-04-09 13:10:45 +02:00
parent ae818edd81
commit eb7022a6ae
2 changed files with 14 additions and 15 deletions
+1 -2
View File
@@ -341,9 +341,8 @@ public void OnEntityDestroyed(int entity)
if (item.bWeapon && item.iWeapon == entity)
{
g_hArray_Items.Erase(index);
item.iWeapon = INVALID_ENT_REFERENCE;
delete item;
return;
}
else if (item.bButton && item.iButton == entity)