Core/Misc: Correct some wrong integer types in DB query results

Fixes errors when running a worldserver compiled using WITH_COREDEBUG cmake option
This commit is contained in:
Aaron126
2015-02-19 10:03:36 -06:00
parent 8c49d204c3
commit 287165d254
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();