Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed bug in BroadcastPlugin
  • Loading branch information
nickgammon committed Sep 28, 2010
1 parent 406ca72 commit 5f41472
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripting/methods/methods_plugins.cpp
Expand Up @@ -543,7 +543,6 @@ GET_PLUGIN_STUFF (GetTimerOption (TimerName, OptionName))
long CMUSHclientDoc::BroadcastPlugin(long Message, LPCTSTR Text)
{
CPlugin * pSavedPlugin = m_CurrentPlugin;
m_CurrentPlugin = NULL;
long iCount = 0;

CString strCurrentID;
Expand All @@ -566,6 +565,7 @@ long CMUSHclientDoc::BroadcastPlugin(long Message, LPCTSTR Text)
continue;

CScriptCallInfo callinfo (ON_PLUGIN_BROADCAST, pPlugin->m_PluginCallbacks [ON_PLUGIN_BROADCAST]);
m_CurrentPlugin = pPlugin;

// see what the plugin makes of this,
pPlugin->ExecutePluginScript (callinfo,
Expand Down

0 comments on commit 5f41472

Please sign in to comment.