Skip to content

Commit

Permalink
Fixed bug when restarting a button using multisource (Do not use mult…
Browse files Browse the repository at this point in the history
…isource when restarting a button)
  • Loading branch information
s1lentq committed Aug 23, 2023
1 parent 53d26a7 commit 02bb06a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion regamedll/dlls/buttons.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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))))
Expand Down

0 comments on commit 02bb06a

Please sign in to comment.