fixed truncation of constant on assignment issue

This commit is contained in:
Arthur Dene Ice
2014-05-10 12:41:52 -07:00
parent e6ecfadd2f
commit e9b88e2401
+10 -10
View File
@@ -111,11 +111,11 @@ const EQClientVersion Strategy::ClientVersion() const
static inline structs::ItemSlotStruct TitaniumToRoFSlot(uint32 TitaniumSlot) static inline structs::ItemSlotStruct TitaniumToRoFSlot(uint32 TitaniumSlot)
{ {
structs::ItemSlotStruct RoFSlot; structs::ItemSlotStruct RoFSlot;
RoFSlot.SlotType = 0xffff; RoFSlot.SlotType = 0xff;
RoFSlot.Unknown02 = 0; RoFSlot.Unknown02 = 0;
RoFSlot.MainSlot = 0xffff; RoFSlot.MainSlot = 0xff;
RoFSlot.SubSlot = 0xffff; RoFSlot.SubSlot = 0xff;
RoFSlot.AugSlot = 0xffff; RoFSlot.AugSlot = 0xff;
RoFSlot.Unknown01 = 0; RoFSlot.Unknown01 = 0;
uint32 TempSlot = 0; uint32 TempSlot = 0;
@@ -359,9 +359,9 @@ static inline uint32 MainInvRoFToTitaniumSlot(structs::MainInvItemSlotStruct RoF
static inline structs::MainInvItemSlotStruct MainInvTitaniumToRoFSlot(uint32 TitaniumSlot) static inline structs::MainInvItemSlotStruct MainInvTitaniumToRoFSlot(uint32 TitaniumSlot)
{ {
structs::MainInvItemSlotStruct RoFSlot; structs::MainInvItemSlotStruct RoFSlot;
RoFSlot.MainSlot = 0xffff; RoFSlot.MainSlot = 0xff;
RoFSlot.SubSlot = 0xffff; RoFSlot.SubSlot = 0xff;
RoFSlot.AugSlot = 0xffff; RoFSlot.AugSlot = 0xff;
RoFSlot.Unknown01 = 0; RoFSlot.Unknown01 = 0;
uint32 TempSlot = 0; uint32 TempSlot = 0;
@@ -2863,9 +2863,9 @@ ENCODE(OP_RecipeAutoCombine) {
structs::ItemSlotStruct RoFSlot; structs::ItemSlotStruct RoFSlot;
RoFSlot.SlotType = 8; // Observed RoFSlot.SlotType = 8; // Observed
RoFSlot.Unknown02 = 0; RoFSlot.Unknown02 = 0;
RoFSlot.MainSlot = 0xffff; RoFSlot.MainSlot = 0xff;
RoFSlot.SubSlot = 0xffff; RoFSlot.SubSlot = 0xff;
RoFSlot.AugSlot = 0xffff; RoFSlot.AugSlot = 0xff;
RoFSlot.Unknown01 = 0; RoFSlot.Unknown01 = 0;
eq->unknown_slot = RoFSlot; eq->unknown_slot = RoFSlot;
OUT(recipe_id); OUT(recipe_id);