Core/Misc: Another batch of fixes for issues found by static analysis
This commit is contained in:
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*/)
|
||||
|
||||
Reference in new issue
Block a user