From d84c3a37980ada26ec2ca453ff2434c559c9410f Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sat, 21 Oct 2006 21:48:24 +0000 Subject: [PATCH] Fixed bug am46058, unpausing stopped plugins --- amxmodx/CPlugin.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/amxmodx/CPlugin.cpp b/amxmodx/CPlugin.cpp index 6ad511f6..85204f03 100755 --- a/amxmodx/CPlugin.cpp +++ b/amxmodx/CPlugin.cpp @@ -417,14 +417,16 @@ void CPluginMngr::CPlugin::pausePlugin() // Unpause a plugin void CPluginMngr::CPlugin::unpausePlugin() { - if (isValid()) + if (isValid() && (getStatusCode() != ps_stopped)) { // set status first so the function will be marked executable setStatus(ps_running); // call plugin_unpause if provided if (m_UnpauseFwd != -1) + { executeForwards(m_UnpauseFwd); + } } }