From e6f26cfb1f75d21a166cc3fd371f9c5f1641625e Mon Sep 17 00:00:00 2001 From: jackpoz Date: Sun, 8 Feb 2015 19:40:03 +0100 Subject: Core/Misc: Fix static analysis issues Fix some static analysis issues reported by Coverity. Rename SpellMgr::EnsureSpellInfo() to SpellMgr::AssertSpellInfo() to be consistent with other similar methods. --- src/server/scripts/Commands/cs_gobject.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/server/scripts/Commands') diff --git a/src/server/scripts/Commands/cs_gobject.cpp b/src/server/scripts/Commands/cs_gobject.cpp index f7a261eaa92..59d32f9e418 100644 --- a/src/server/scripts/Commands/cs_gobject.cpp +++ b/src/server/scripts/Commands/cs_gobject.cpp @@ -182,7 +182,7 @@ public: } /// @todo is it really necessary to add both the real and DB table guid here ? - sObjectMgr->AddGameobjectToGrid(guidLow, sObjectMgr->GetGOData(guidLow)); + sObjectMgr->AddGameobjectToGrid(guidLow, ASSERT_NOTNULL(sObjectMgr->GetGOData(guidLow))); handler->PSendSysMessage(LANG_GAMEOBJECT_ADD, objectId, objectInfo->name.c_str(), guidLow, x, y, z); return true; -- cgit v1.2.3