summaryrefslogtreecommitdiff
path: root/src/modmanager_static.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modmanager_static.cpp')
-rw-r--r--src/modmanager_static.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modmanager_static.cpp b/src/modmanager_static.cpp
index c5b1e1062..cea40c7a3 100644
--- a/src/modmanager_static.cpp
+++ b/src/modmanager_static.cpp
@@ -158,7 +158,8 @@ namespace {
ServerInstance->Modules->DoSafeUnload(mod);
ServerInstance->GlobalCulls.Apply();
bool rv = ServerInstance->Modules->Load(name.c_str());
- callback->Call(rv);
+ if (callback)
+ callback->Call(rv);
ServerInstance->GlobalCulls.AddItem(this);
}
};