26.01.2015, 13:20
This fixes a crash (Important Note) from this page
https://sampwiki.blast.hk/wiki/MapIcons
I don't know will Kalcor read PM or not, and I write it here
https://sampwiki.blast.hk/wiki/MapIcons
Код:
void _declspec(naked) MapCrashFix()
{
__asm
{
sub esp, 10h
push ebx
mov ebx, [esp+32]
cmp ebx, 1000
jle short exitfn
/*
cmp ebx, 132h
jz short exitfn
cmp ebx, 15Fh
jz short exitfn
*/
mov eax, 71A708h
jmp eax
exitfn:
add esp, 10h
pop ebx
ret;
}
}
InstallCallHook(0x582DEE,(DWORD)MapCrashFix);


