Core/Quest: Corrected type of emote field in QuestOfferReward to be signed

Port From (https://github.com/TrinityCore/TrinityCore/commit/27931b45c681f7f84928bad557882350731df3dc)
This commit is contained in:
hondacrx
2022-07-19 12:17:41 -04:00
parent 0302d9b1df
commit 0a3ea6ac48
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -195,7 +195,7 @@ namespace Game
{
for (int i = 0; i < SharedConst.QuestEmoteCount; ++i)
{
ushort emoteId = fields.Read<ushort>(1 + i);
short emoteId = fields.Read<short>(1 + i);
if (!CliDB.EmotesStorage.ContainsKey(emoteId))
{
Log.outError(LogFilter.Sql, "Table `quest_offer_reward` has non-existing Emote{0} ({1}) set for quest {2}. Skipped.", 1 + i, emoteId, fields.Read<uint>(0));
@@ -756,7 +756,7 @@ namespace Game
public string RequestItemsText = "";
// quest_offer_reward table
public uint[] OfferRewardEmote = new uint[SharedConst.QuestEmoteCount];
public int[] OfferRewardEmote = new int[SharedConst.QuestEmoteCount];
public uint[] OfferRewardEmoteDelay = new uint[SharedConst.QuestEmoteCount];
public string OfferRewardText = "";