Core/Misc: Another batch of fixes for issues found by static analysis

This commit is contained in:
Spp committed 2013-05-30 13:18:29 +02:00
1 parent 782ea4309a
commit 9664c0ab5c
14 files changed
+130 -96

No files matched your search

@@ -87,7 +87,10 @@ bool GameObject::AIM_Initialize()
std::string GameObject::GetAIName() const
{
return sObjectMgr->GetGameObjectTemplate(GetEntry())->AIName;
if (GameObjectTemplate const* got = sObjectMgr->GetGameObjectTemplate(GetEntry()))
return got->AIName;
return "";
}
void GameObject::CleanupsBeforeDelete(bool /*finalCleanup*/)