aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Globals/ObjectMgr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/game/Globals/ObjectMgr.cpp')
-rw-r--r--src/server/game/Globals/ObjectMgr.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/server/game/Globals/ObjectMgr.cpp b/src/server/game/Globals/ObjectMgr.cpp
index 0679cc60cfc..ac87f58af5c 100644
--- a/src/server/game/Globals/ObjectMgr.cpp
+++ b/src/server/game/Globals/ObjectMgr.cpp
@@ -6459,6 +6459,22 @@ void ObjectMgr::LoadGameObjectTemplate()
{
uint32 oldMSTime = getMSTime();
+ for (GameObjectsEntry const* db2go : sGameObjectsStore)
+ {
+ GameObjectTemplate& go = _gameObjectTemplateStore[db2go->ID];
+ go.entry = db2go->ID;
+ go.type = db2go->Type;
+ go.displayId = db2go->DisplayID;
+ go.name = db2go->Name->Str[sWorld->GetDefaultDbcLocale()];
+ go.faction = 0;
+ go.flags = 0;
+ go.size = db2go->Size;
+ memset(go.raw.data, 0, sizeof(go.raw.data));
+ memcpy(go.raw.data, db2go->Data, std::min(sizeof(db2go->Data), sizeof(go.raw.data)));
+ go.unkInt32 = 0;
+ go.ScriptId = 0;
+ }
+
// 0 1 2 3 4 5 6 7 8 9
QueryResult result = WorldDatabase.Query("SELECT entry, type, displayId, name, IconName, castBarCaption, unk1, faction, flags, size, "
// 10 11 12 13 14 15 16 17 18 19 20 21 22