From 360037a2fd1f573dc7e1994c41af1617b1c48edc Mon Sep 17 00:00:00 2001 From: NovaRain Date: Wed, 24 Jan 2024 09:45:05 +0800 Subject: [PATCH] Changed the fix for add_mult_objs_to_inven (to allow adding more than 99999 instances of an object in one go) --- sfall/Modules/BugFixes.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sfall/Modules/BugFixes.cpp b/sfall/Modules/BugFixes.cpp index 785f12b1..eee91cc5 100644 --- a/sfall/Modules/BugFixes.cpp +++ b/sfall/Modules/BugFixes.cpp @@ -3631,8 +3631,8 @@ void BugFixes::init() { // Fix for player's base EMP DR not being properly initialized when creating a new character and then starting the game HookCall(0x4A22DF, ResetPlayer_hook); - // Fix for add_mult_objs_to_inven only adding 500 of an object when the value of the "count" argument is over 99999 - SafeWrite32(0x45A2A0, 99999); + // Fix for add_mult_objs_to_inven adding only 500 instances of an object when the "count" argument is over 99999 + SafeWrite8(0x45A289, 0x1A); // jge 0x45A294 (skip upper limit) // Fix for being at incorrect hex after map change when the exit hex in source map is at the same position as some exit hex // in destination map