Core/Misc: Changed creature_template.family to int

Closes #23296
This commit is contained in:
Shauren
2019-06-15 10:22:33 +02:00
parent 6b29c4da76
commit 5c3a06ab06
2 changed files with 2 additions and 1 deletions
@@ -0,0 +1 @@
ALTER TABLE `creature_template` MODIFY COLUMN `family` int(11) NOT NULL DEFAULT 0 AFTER `dynamicflags`;
+1 -1
View File
@@ -496,7 +496,7 @@ void ObjectMgr::LoadCreatureTemplate(Field* fields)
creatureTemplate.unit_flags2 = fields[30].GetUInt32();
creatureTemplate.unit_flags3 = fields[31].GetUInt32();
creatureTemplate.dynamicflags = fields[32].GetUInt32();
creatureTemplate.family = CreatureFamily(fields[33].GetUInt8());
creatureTemplate.family = CreatureFamily(fields[33].GetInt32());
creatureTemplate.trainer_class = uint32(fields[34].GetUInt8());
creatureTemplate.type = uint32(fields[35].GetUInt8());
creatureTemplate.type_flags = fields[36].GetUInt32();