mirror of
https://github.com/sfall-team/sfall.git
synced 2026-07-27 16:52:34 -07:00
Fixed a visual glitch on the char screen when selecting gain xxx perks
(ref. fallout2-ce/fallout2-ce#367)
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user