Various: Fix coverity reported issues.

This commit is contained in:
treeston authored and Aokromes committed 2016-10-05 07:59:14 +02:00
1 parent 0f5f87add0
commit 824db91cbe
5 files changed
+9 -53

No files matched your search

+2
View File
@@ -1642,6 +1642,8 @@ bool ScriptMgr::CanSpawn(ObjectGuid::LowType spawnId, uint32 entry, CreatureTemp
ASSERT(actTemplate);
CreatureTemplate const* baseTemplate = sObjectMgr->GetCreatureTemplate(entry);
if (!baseTemplate)
baseTemplate = actTemplate;
GET_SCRIPT_RET(CreatureScript, baseTemplate->ScriptID, tmpscript, true);
return tmpscript->CanSpawn(spawnId, entry, baseTemplate, actTemplate, cData, map);
}