[Suggestion] Map Crash fix
#1

This fixes a crash (Important Note) from this page
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);
I don't know will Kalcor read PM or not, and I write it here
Reply


Messages In This Thread
[Suggestion] Map Crash fix - by ][Noname][ - 26.01.2015, 13:20
Re: [Suggestion] Map Crash fix - by kurta999 - 26.01.2015, 13:53
Re: [Suggestion] Map Crash fix - by codectile - 26.01.2015, 14:11
Re: [Suggestion] Map Crash fix - by Cameryn - 27.01.2015, 06:31
Re: [Suggestion] Map Crash fix - by Kar - 23.04.2015, 00:13
Re: [Suggestion] Map Crash fix - by n0minal - 23.04.2015, 00:28
Re: [Suggestion] Map Crash fix - by Romz - 12.01.2018, 04:05

Forum Jump:


Users browsing this thread: 4 Guest(s)