diff --git a/regamedll/dlls/buttons.cpp b/regamedll/dlls/buttons.cpp index c559f8c0..36e2ff1b 100644 --- a/regamedll/dlls/buttons.cpp +++ b/regamedll/dlls/buttons.cpp @@ -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))))