Skip to content

Commit

Permalink
Fixed bug in PluginSupports which would crash if a plugin had no scri…
Browse files Browse the repository at this point in the history
…pt in it
  • Loading branch information
nickgammon committed May 11, 2018
1 parent 000a621 commit 079ba7f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripting/methods/methods_plugins.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 079ba7f

Please sign in to comment.