diff options
| author | 2014-11-30 18:20:42 +0100 | |
|---|---|---|
| committer | 2014-11-30 18:20:42 +0100 | |
| commit | a2f23523cff4dcc7dfac60781027fc90074c1ebd (patch) | |
| tree | 22e81cb887371cb51cb83b0937a18d186ce4789e /src/modmanager_static.cpp | |
| parent | Fix a couple of helpop issues (diff) | |
Validate module reload callback before use in PURE_STATIC builds
Diffstat (limited to 'src/modmanager_static.cpp')
| -rw-r--r-- | src/modmanager_static.cpp | 3 |
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); } }; |
