Merge pull request #14179 from Aaron126/6.x

Core/Misc: Correct some wrong integer types in DB query results
This commit is contained in:
joschiwald
2015-02-19 17:12:18 +01:00
3 changed files with 3 additions and 2 deletions

View File

@@ -0,0 +1 @@
ALTER TABLE `quest_template` CHANGE COLUMN `RewardXPDifficulty` `RewardXPDifficulty` INT(10) UNSIGNED NOT NULL DEFAULT '0' AFTER `RewardNextQuest`;

View File

@@ -733,7 +733,7 @@ void AchievementMgr<Guild>::LoadFromDB(PreparedQueryResult achievementResult, Pr
{
Field* fields = criteriaResult->Fetch();
uint32 id = fields[0].GetUInt32();
uint32 counter = fields[1].GetUInt32();
uint64 counter = fields[1].GetUInt64();
time_t date = time_t(fields[2].GetUInt32());
ObjectGuid::LowType guid = fields[3].GetUInt64();

View File

@@ -46,7 +46,7 @@ WorldPackets::Character::EnumCharactersResult::CharacterInfo::CharacterInfo(Fiel
PreLoadPosition.y = fields[11].GetFloat();
PreLoadPosition.z = fields[12].GetFloat();
if (uint32 guildId = fields[13].GetUInt32())
if (ObjectGuid::LowType guildId = fields[13].GetUInt64())
GuildGuid = ObjectGuid::Create<HighGuid::Guild>(guildId);
uint32 playerFlags = fields[14].GetUInt32();