mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Merge pull request #14179 from Aaron126/6.x
Core/Misc: Correct some wrong integer types in DB query results
This commit is contained in:
1
sql/updates/world/2015_02_19_00_world.sql
Normal file
1
sql/updates/world/2015_02_19_00_world.sql
Normal file
@@ -0,0 +1 @@
|
||||
ALTER TABLE `quest_template` CHANGE COLUMN `RewardXPDifficulty` `RewardXPDifficulty` INT(10) UNSIGNED NOT NULL DEFAULT '0' AFTER `RewardNextQuest`;
|
||||
@@ -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();
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user