mirror of
https://github.com/sfall-team/sfall.git
synced 2026-07-27 16:52:34 -07:00
Fixed "out of bounds" bug when printing the automap list.
This commit is contained in:
@@ -2004,6 +2004,16 @@ static void __declspec(naked) obj_load_dude_hook1() {
|
||||
}
|
||||
}
|
||||
|
||||
static void __declspec(naked) PrintAMList_hook() {
|
||||
__asm {
|
||||
cmp ebp, 20; // max line count
|
||||
jle skip;
|
||||
mov ebp, 20;
|
||||
skip:
|
||||
jmp qsort_;
|
||||
}
|
||||
}
|
||||
|
||||
void BugsInit()
|
||||
{
|
||||
// fix vanilla negate operator on float values
|
||||
@@ -2531,4 +2541,7 @@ void BugsInit()
|
||||
HookCall(0x48D666, obj_load_dude_hook1);
|
||||
BlockCall(0x48D675);
|
||||
BlockCall(0x48D69D);
|
||||
|
||||
// Fix "out of bounds" bug when printing the automap list
|
||||
HookCall(0x499240, PrintAMList_hook);
|
||||
}
|
||||
|
||||
+1
-1
@@ -483,6 +483,6 @@ void QuestListInit() {
|
||||
|
||||
dlogr(" Done", DL_INIT);
|
||||
} else {
|
||||
HookCall(0x498186, PipStatus_hook_printfix); // fix "out of range" bug when printing a list of quests
|
||||
HookCall(0x498186, PipStatus_hook_printfix); // fix "out of bounds" bug when printing a list of quests
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user