Skip to content

Commit 079ba7f

Browse files
committed
Fixed bug in PluginSupports which would crash if a plugin had no script in it
1 parent 000a621 commit 079ba7f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripting/methods/methods_plugins.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,9 @@ CPlugin * pPlugin = GetPlugin (PluginID);
479479
if (strlen (Routine) == 0)
480480
return eNoSuchRoutine;
481481

482+
if (!pPlugin->m_ScriptEngine)
483+
return eNoSuchRoutine;
484+
482485
DISPID iDispid = pPlugin->m_ScriptEngine->GetDispid (Routine);
483486

484487
if (iDispid == DISPID_UNKNOWN)

0 commit comments

Comments
 (0)