[Script]: Fix asm

This commit is contained in:
FutureRave 2022-11-25 23:28:20 +00:00
parent a277640ed9
commit 720ee9730c
No known key found for this signature in database
GPG Key ID: 22F9079C86CFAB31

View File

@ -107,18 +107,20 @@ namespace Game
}
}
void Scr_NotifyId(unsigned int id, unsigned __int16 stringValue, unsigned int paramcount)
__declspec(naked) void Scr_NotifyId(unsigned int /*id*/, unsigned __int16 /*stringValue*/, unsigned int /*paramcount*/)
{
static DWORD Scr_NotifyId_t = 0x61E670;
__asm
{
pushad
mov eax, paramcount
push stringValue
push id
mov eax, [esp + 0x20 + 0xC] // paramcount
push [esp + 0x20 + 0x8] // stringValue
push [esp + 0x20 + 0x8] // id
call Scr_NotifyId_t
add esp, 8h
add esp, 0x8
popad
}
}