From 079ba7fe236886a0bb18af98a534d1678c227f89 Mon Sep 17 00:00:00 2001 From: Nick Gammon Date: Fri, 11 May 2018 13:37:29 +1000 Subject: [PATCH] Fixed bug in PluginSupports which would crash if a plugin had no script in it --- scripting/methods/methods_plugins.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripting/methods/methods_plugins.cpp b/scripting/methods/methods_plugins.cpp index 967a2b74..4a9f62e5 100644 --- a/scripting/methods/methods_plugins.cpp +++ b/scripting/methods/methods_plugins.cpp @@ -479,6 +479,9 @@ CPlugin * pPlugin = GetPlugin (PluginID); if (strlen (Routine) == 0) return eNoSuchRoutine; + if (!pPlugin->m_ScriptEngine) + return eNoSuchRoutine; + DISPID iDispid = pPlugin->m_ScriptEngine->GetDispid (Routine); if (iDispid == DISPID_UNKNOWN)