mirror of
https://github.com/sfall-team/sfall.git
synced 2026-07-27 16:52:34 -07:00
Fixed crash on game save (due to commit 13e0348c)
This commit is contained in:
@@ -300,7 +300,9 @@ static void __stdcall SetHeroArt(bool newArtFlag) {
|
||||
// return hero art val to normal before saving
|
||||
static __declspec(naked) void SavCritNumFix() {
|
||||
__asm {
|
||||
pushadc;
|
||||
push ecx;
|
||||
push edx;
|
||||
push eax;
|
||||
push 0; // set hero FrmID LST index to normal range before saving
|
||||
call SetHeroArt;
|
||||
pop eax;
|
||||
@@ -308,7 +310,9 @@ static __declspec(naked) void SavCritNumFix() {
|
||||
push eax;
|
||||
push 1; // return hero FrmID LST index back to hero art range after saving hero state structure
|
||||
call SetHeroArt;
|
||||
popadc;
|
||||
pop eax;
|
||||
pop edx;
|
||||
pop ecx;
|
||||
retn;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user