omfg, how to write float value using memcpy?
gives me an engine crash.
EDITED:
problem solved. nvm lol. please, delete this thread.
Code:
DWORD addr = 0x12345678;
FLOAT value[] = { 100, 200, 300 };
memcpy((void*)addr, (void*)((FLOAT)value[1]),4);
EDITED:
problem solved. nvm lol. please, delete this thread.