Skip to content

Commit

Permalink
DB/Schema: Increase size of quest_template.RequiredRaces to mediumint
Browse files Browse the repository at this point in the history
needed because Worgen race is 1 << (22-1)
  • Loading branch information
DDuarte committed Aug 20, 2012
1 parent 5b525cb commit 460f428
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions sql/updates/world/2012_08_20_00_world_quest_template.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE `quest_template` CHANGE `RequiredRaces` `RequiredRaces` mediumint(8) unsigned NOT NULL DEFAULT '0';
2 changes: 1 addition & 1 deletion src/server/game/Quests/QuestDef.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Quest::Quest(Field* questRecord)
SuggestedPlayers = questRecord[7].GetUInt8();
LimitTime = questRecord[8].GetUInt32();
RequiredClasses = questRecord[9].GetUInt16();
RequiredRaces = questRecord[10].GetUInt16();
RequiredRaces = questRecord[10].GetUInt32();
RequiredSkillId = questRecord[11].GetUInt16();
RequiredSkillPoints = questRecord[12].GetUInt16();
RequiredFactionId1 = questRecord[13].GetUInt16();
Expand Down

0 comments on commit 460f428

Please sign in to comment.