Permalink
Browse files

Fix #248

  • Loading branch information...
Bara committed Dec 3, 2017
1 parent 0f10cf2 commit f21993170c5ca925d5897187b5187035fff8d9c1
Showing with 5 additions and 0 deletions.
  1. +5 −0 addons/sourcemod/scripting/ttt/ttt.sp
@@ -1543,6 +1543,11 @@ public Action OnTakeDamageAlive(int iVictim, int &iAttacker, int &inflictor, flo
char iItem[TTT_LOG_SIZE];
int iWeapon = GetEntPropEnt(iAttacker, Prop_Send, "m_hActiveWeapon");
if (!IsValidEntity(iWeapon))
{
return Plugin_Continue;
}
char sWeapon[32];
GetEntityClassname(iWeapon, sWeapon, sizeof(sWeapon));

0 comments on commit f219931

Please sign in to comment.