Gonna make it short, my game crashes when i call my function, the address of the function is fine. I hope someone here can tell me what's wrong.
Code:
Code:
if(msg == "Cast4"){
typedef int ( __stdcall *Spellcast)(DWORD , DWORD);
Spellcast castmyspell = (Spellcast)0x00B908F0;
castmyspell(6, 0);
}
CheatEngine: (+registers on breakpoint)






