aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/Commands
diff options
context:
space:
mode:
authorjackpoz <giacomopoz@gmail.com>2015-02-08 19:40:03 +0100
committerjackpoz <giacomopoz@gmail.com>2015-02-08 19:40:03 +0100
commite6f26cfb1f75d21a166cc3fd371f9c5f1641625e (patch)
tree97521ff8cd7ab668657465c5b9052537246a7e4e /src/server/scripts/Commands
parent4ba22c5eafdad2094b553c206c1dc1f30448d049 (diff)
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.
Diffstat (limited to 'src/server/scripts/Commands')
-rw-r--r--src/server/scripts/Commands/cs_gobject.cpp2
1 files changed, 1 insertions, 1 deletions
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;