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"))