[12169] Fix some problems detected by static code analysis

This commit is contained in:
zerg 2012-09-02 13:14:02 +06:00 committed by Antz
parent 62118e099e
commit b8b907c138
4 changed files with 6 additions and 5 deletions

View file

@ -4780,7 +4780,7 @@ void ObjectMgr::LoadInstanceTemplate()
if (!parentEntry)
{
sLog.outErrorDb("ObjectMgr::LoadInstanceTemplate: bad parent map id %u for instance template %d template!",
parentEntry->MapID, temp->map);
temp->parent, temp->map);
const_cast<InstanceTemplate*>(temp)->parent = 0;
continue;
}