From 02bb06a6ef17a0df9efe7ec55bb834578ac84b40 Mon Sep 17 00:00:00 2001 From: s1lentq Date: Wed, 23 Aug 2023 23:14:31 +0700 Subject: [PATCH] Fixed bug when restarting a button using multisource (Do not use multisource when restarting a button) --- regamedll/dlls/buttons.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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))))