Fixed bug when restarting a button using multisource (Do not use multisource when restarting a button)

This commit is contained in:
s1lentq 2023-08-23 23:14:31 +07:00
parent 53d26a7ea5
commit 02bb06a6ef

View File

@ -776,7 +776,11 @@ void CBaseButton::ButtonBackHome()
SUB_UseTargets(m_hActivator, USE_TOGGLE, 0);
}
if (!FStringNull(pev->target))
if (!FStringNull(pev->target)
#ifdef REGAMEDLL_FIXES
&& m_hActivator
#endif
)
{
edict_t *pentTarget = nullptr;
while ((pentTarget = FIND_ENTITY_BY_TARGETNAME(pentTarget, STRING(pev->target))))