aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian <runningnak3d@gmail.com>2009-12-21 17:30:02 -0700
committerBrian <runningnak3d@gmail.com>2009-12-21 17:30:02 -0700
commit0aa2069c73671fdd99d55cbc7645ad589fbf8586 (patch)
tree6de4a62e82c9e6a19fb775c12fa3414aa8b4bab1 /src
parenteee8e179a124f9c3687dbc6f2f8c512b1239d2d9 (diff)
* Added support for GAMEOBJECT_TYPE_TRAP and GAMEOBJECT_TYPE_SPELL_FOCUS to
* have modelid=0 since this is valid data for those GO types. More to the * point removed the check at core load that resulted in an error being logged --HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/ObjectMgr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/ObjectMgr.cpp b/src/game/ObjectMgr.cpp
index 76c66dbd54a..d659561a889 100644
--- a/src/game/ObjectMgr.cpp
+++ b/src/game/ObjectMgr.cpp
@@ -1575,7 +1575,7 @@ void ObjectMgr::LoadGameobjects()
continue;
}
- if(!gInfo->displayId)
+ if(!gInfo->displayId && (!gInfo->type == GAMEOBJECT_TYPE_TRAP || !gInfo->type == GAMEOBJECT_TYPE_SPELL_FOCUS))
{
sLog.outErrorDb("Gameobject (GUID: %u Entry %u GoType: %u) doesn't have displayId (%u), not loaded.", guid, entry, gInfo->type, gInfo->displayId);
continue;