summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-01-23 16:14:00 +0100
committermadmaxoft <github@xoft.cz>2014-01-23 16:14:00 +0100
commit435eae38583f77154039273085d1145c80a263bb (patch)
treeec3454c3a59985a7e5e327c2f9fe3c733e5c9913 /src
parentImproved code safety for the Compact world storage. (diff)
downloadcuberite-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 'src')
-rw-r--r--src/Bindings/PluginManager.cpp2
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;
}