From 45e7ff91935de1eece1b6cfceb8931a6606b0f54 Mon Sep 17 00:00:00 2001 From: "Michael Cook (mackal)" Date: Mon, 9 Feb 2015 03:02:25 -0500 Subject: [PATCH] Fix RoF2 item hotkeys This string thing needs to be longer! Still no idea what it is --- common/patches/rof2.cpp | 2 +- common/patches/rof2_structs.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/patches/rof2.cpp b/common/patches/rof2.cpp index 6947ded15..d0189e56a 100644 --- a/common/patches/rof2.cpp +++ b/common/patches/rof2.cpp @@ -5053,7 +5053,7 @@ namespace RoF2 //sprintf(hdr.unknown000, "06e0002Y1W00"); - snprintf(hdr.unknown000, sizeof(hdr.unknown000), "%012d", item->ID); + snprintf(hdr.unknown000, sizeof(hdr.unknown000), "%016d", item->ID); hdr.stacksize = stackable ? charges : 1; hdr.unknown004 = 0; diff --git a/common/patches/rof2_structs.h b/common/patches/rof2_structs.h index 9ef524f55..95f5c31e6 100644 --- a/common/patches/rof2_structs.h +++ b/common/patches/rof2_structs.h @@ -4353,7 +4353,7 @@ struct RoF2SlotStruct struct ItemSerializationHeader { -/*000*/ char unknown000[13]; // New for HoT. Looks like a string. +/*000*/ char unknown000[17]; // New for HoT. Looks like a string. /*017*/ uint32 stacksize; /*021*/ uint32 unknown004; /*025*/ uint8 slot_type; // 0 = normal, 1 = bank, 2 = shared bank, 9 = merchant, 20 = ?