diff options
author | madmaxoft <github@xoft.cz> | 2014-01-23 23:46:51 +0100 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-01-23 23:46:51 +0100 |
commit | 98976de0710e60cc9d11c85cf398b0ec565399c5 (patch) | |
tree | eaae19ce64cfc644a9b5836f6fea4c6e7f9ebd2f /src/Bindings/PluginManager.cpp | |
parent | Fixed a warning in ScoreboardSerializer. (diff) | |
parent | Merge pull request #580 from xdot/master (diff) | |
download | cuberite-98976de0710e60cc9d11c85cf398b0ec565399c5.tar cuberite-98976de0710e60cc9d11c85cf398b0ec565399c5.tar.gz cuberite-98976de0710e60cc9d11c85cf398b0ec565399c5.tar.bz2 cuberite-98976de0710e60cc9d11c85cf398b0ec565399c5.tar.lz cuberite-98976de0710e60cc9d11c85cf398b0ec565399c5.tar.xz cuberite-98976de0710e60cc9d11c85cf398b0ec565399c5.tar.zst cuberite-98976de0710e60cc9d11c85cf398b0ec565399c5.zip |
Diffstat (limited to 'src/Bindings/PluginManager.cpp')
-rw-r--r-- | src/Bindings/PluginManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Bindings/PluginManager.cpp b/src/Bindings/PluginManager.cpp index 92c06487c..e582fde86 100644 --- a/src/Bindings/PluginManager.cpp +++ b/src/Bindings/PluginManager.cpp @@ -1740,7 +1740,7 @@ bool cPluginManager::DoWithPlugin(const AString & a_PluginName, cPluginCallback { // TODO: Implement locking for plugins PluginMap::iterator itr = m_Plugins.find(a_PluginName); - if (itr == m_Plugins.end()) + if ((itr == m_Plugins.end()) || (itr->second == NULL)) { return false; } |