diff options
author | madmaxoft <github@xoft.cz> | 2014-01-23 16:14:00 +0100 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-01-23 16:14:00 +0100 |
commit | 435eae38583f77154039273085d1145c80a263bb (patch) | |
tree | ec3454c3a59985a7e5e327c2f9fe3c733e5c9913 /src | |
parent | Improved code safety for the Compact world storage. (diff) | |
download | cuberite-435eae38583f77154039273085d1145c80a263bb.tar cuberite-435eae38583f77154039273085d1145c80a263bb.tar.gz cuberite-435eae38583f77154039273085d1145c80a263bb.tar.bz2 cuberite-435eae38583f77154039273085d1145c80a263bb.tar.lz cuberite-435eae38583f77154039273085d1145c80a263bb.tar.xz cuberite-435eae38583f77154039273085d1145c80a263bb.tar.zst cuberite-435eae38583f77154039273085d1145c80a263bb.zip |
Diffstat (limited to '')
-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; } |