Minor code format edits in ScriptExtender/LoadGameHook.cpp

This commit is contained in:
NovaRain
2021-02-04 10:11:48 +08:00
parent 030533207f
commit cd828b9717
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -622,7 +622,7 @@ static void __declspec(naked) LootContainerHook_End() {
cmp dword ptr [esp + 0x150 - 0x58 + 4], 0; // JESSE_CONTAINER
jz skip; // container is not created
_InLoop2(0, INTFACELOOT);
xor eax,eax;
xor eax, eax;
skip:
call ResetBodyState; // reset object pointer used in calculating the weight/size of equipped and hidden items on NPCs after exiting loot/barter screens
retn 0x13C;
+2 -2
View File
@@ -680,8 +680,8 @@ static DWORD __stdcall HandleMapUpdateForScripts(const DWORD procId) {
onMapExit.invoke();
}
RunGlobalScriptsAtProc(procId); // gl* scripts of types 0 and 3
HookScripts::RunHookScriptsAtProc(procId); // all hs_ scripts
RunGlobalScriptsAtProc(procId); // gl* scripts of types 0 and 3
HookScripts::RunHookScriptsAtProc(procId); // all hs_ scripts
return procId; // restore eax (don't delete)
}