Fixed a visual glitch on the char screen when selecting gain xxx perks

(ref. fallout2-ce/fallout2-ce#367)
This commit is contained in:
NovaRain
2026-04-11 21:37:55 +08:00
parent d4c223a313
commit ec9832b6a1
+5 -1
View File
@@ -2045,7 +2045,7 @@ static __declspec(naked) void ai_retrieve_object_hook() {
__asm {
mov retrievePtr, 1;
mov edx, ebx; // object ptr
call fo::funcoffs::inven_find_id_; // check prt (fix behavior)
call fo::funcoffs::inven_find_id_; // check ptr (fix behavior)
mov retrievePtr, 0;
test eax, eax;
jz tryFindId;
@@ -4553,6 +4553,10 @@ void BugFixes::init() {
// Fix crash when calling proto_data with an invalid data member value
HookCall(0x458DBA, op_proto_data_hook);
// Fix for minor visual glitch when selecting perks that modify SPECIAL stats
const DWORD printStatBufWidthAddr[] = {0x434C76, 0x434D2A, 0x434E00, 0x434EB5};
SafeWriteBatch<BYTE>(65, printStatBufWidthAddr); // PrintBasicStat_ (was 40)
}
}