fix waila crash

This commit is contained in:
BotoX 2019-10-01 14:43:21 +02:00
parent 488d6251a1
commit 1bc1880bd3

View File

@ -1158,6 +1158,7 @@ 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));
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");