From 9b32d51722e802e0e04828ca6261ee91242d5b5e Mon Sep 17 00:00:00 2001 From: BotoX Date: Tue, 1 Oct 2019 14:43:21 +0200 Subject: [PATCH] fix waila crash --- ExtraCommands/scripting/ExtraCommands.sp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ExtraCommands/scripting/ExtraCommands.sp b/ExtraCommands/scripting/ExtraCommands.sp index 9bddb8ee..bdb12ee5 100644 --- a/ExtraCommands/scripting/ExtraCommands.sp +++ b/ExtraCommands/scripting/ExtraCommands.sp @@ -1158,7 +1158,8 @@ stock void WAILA(int client, int iEntity) GetEntityClassname(iEntity, sClsName, sizeof(sClsName)); GetEntityNetClass(iEntity, sNetClsName, sizeof(sNetClsName)); GetEntPropString(iEntity, Prop_Data, "m_iName", sTargetname, sizeof(sTargetname)); - GetEntPropVector(iEntity, Prop_Send, "m_vecOrigin", fvecOrigin); + if(HasEntProp(iEntity, Prop_Send, "m_vecOrigin")) + GetEntPropVector(iEntity, Prop_Send, "m_vecOrigin", fvecOrigin); if(HasEntProp(iEntity, Prop_Send, "m_nModelIndex")) iEntityModelIdx = GetEntProp(iEntity, Prop_Send, "m_nModelIndex"); if(HasEntProp(iEntity, Prop_Data, "m_iHammerID"))