From e9b88e240159011237670fe8b22ec45b5e0b912b Mon Sep 17 00:00:00 2001 From: Arthur Dene Ice Date: Sat, 10 May 2014 12:41:52 -0700 Subject: [PATCH] fixed truncation of constant on assignment issue --- common/patches/RoF.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/common/patches/RoF.cpp b/common/patches/RoF.cpp index 6770fcc7a..4feea5c39 100644 --- a/common/patches/RoF.cpp +++ b/common/patches/RoF.cpp @@ -111,11 +111,11 @@ const EQClientVersion Strategy::ClientVersion() const static inline structs::ItemSlotStruct TitaniumToRoFSlot(uint32 TitaniumSlot) { structs::ItemSlotStruct RoFSlot; - RoFSlot.SlotType = 0xffff; + RoFSlot.SlotType = 0xff; RoFSlot.Unknown02 = 0; - RoFSlot.MainSlot = 0xffff; - RoFSlot.SubSlot = 0xffff; - RoFSlot.AugSlot = 0xffff; + RoFSlot.MainSlot = 0xff; + RoFSlot.SubSlot = 0xff; + RoFSlot.AugSlot = 0xff; RoFSlot.Unknown01 = 0; uint32 TempSlot = 0; @@ -359,9 +359,9 @@ static inline uint32 MainInvRoFToTitaniumSlot(structs::MainInvItemSlotStruct RoF static inline structs::MainInvItemSlotStruct MainInvTitaniumToRoFSlot(uint32 TitaniumSlot) { structs::MainInvItemSlotStruct RoFSlot; - RoFSlot.MainSlot = 0xffff; - RoFSlot.SubSlot = 0xffff; - RoFSlot.AugSlot = 0xffff; + RoFSlot.MainSlot = 0xff; + RoFSlot.SubSlot = 0xff; + RoFSlot.AugSlot = 0xff; RoFSlot.Unknown01 = 0; uint32 TempSlot = 0; @@ -2863,9 +2863,9 @@ ENCODE(OP_RecipeAutoCombine) { structs::ItemSlotStruct RoFSlot; RoFSlot.SlotType = 8; // Observed RoFSlot.Unknown02 = 0; - RoFSlot.MainSlot = 0xffff; - RoFSlot.SubSlot = 0xffff; - RoFSlot.AugSlot = 0xffff; + RoFSlot.MainSlot = 0xff; + RoFSlot.SubSlot = 0xff; + RoFSlot.AugSlot = 0xff; RoFSlot.Unknown01 = 0; eq->unknown_slot = RoFSlot; OUT(recipe_id);