diff --git a/src/server/game/Globals/ObjectMgr.cpp b/src/server/game/Globals/ObjectMgr.cpp index 423db19e13f266..f2bc1fe4b28ac7 100644 --- a/src/server/game/Globals/ObjectMgr.cpp +++ b/src/server/game/Globals/ObjectMgr.cpp @@ -8688,7 +8688,7 @@ bool ObjectMgr::LoadModuleStringsLocale() std::string const* ObjectMgr::GetModuleString(std::string module, uint32 id, LocaleConstant locale) const { ModuleString const* ms = GetModuleString(module, id); - if (ms->Content.size()) + if (ms && !ms->Content.empty()) { if (ms->Content.size() > size_t(locale) && !ms->Content[locale].empty()) return &ms->Content[locale];