mirror of
https://github.com/rehlds/reapi.git
synced 2024-12-29 08:05:36 +03:00
Fix SetMoveDone callback dispatcher
This commit is contained in:
parent
2b8ae61f1e
commit
eab165880e
@ -145,8 +145,6 @@ bool CEntityCallbackDispatcher::SetMoveDone(AMX *amx, CBaseEntity *pEntity, cons
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
m_callbacks.push_back(new EntityCallback(amx, pszCallback, fwdid, pEntity, pParams, iParamsLen, MoveDone));
|
|
||||||
|
|
||||||
// Make sure that the entity actually inherited from CBaseToggle
|
// Make sure that the entity actually inherited from CBaseToggle
|
||||||
CBaseToggle *pEntityToggle = dynamic_cast<CBaseToggle *>(pEntity);
|
CBaseToggle *pEntityToggle = dynamic_cast<CBaseToggle *>(pEntity);
|
||||||
if (!pEntityToggle)
|
if (!pEntityToggle)
|
||||||
@ -155,6 +153,7 @@ bool CEntityCallbackDispatcher::SetMoveDone(AMX *amx, CBaseEntity *pEntity, cons
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m_callbacks.push_back(new EntityCallback(amx, pszCallback, fwdid, pEntity, pParams, iParamsLen, MoveDone));
|
||||||
pEntityToggle->SetMoveDone(&CBaseToggle::SUB_MoveDone);
|
pEntityToggle->SetMoveDone(&CBaseToggle::SUB_MoveDone);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user