diff --git a/src/Game/Functions.cpp b/src/Game/Functions.cpp index 1f5e4477..97db8eb4 100644 --- a/src/Game/Functions.cpp +++ b/src/Game/Functions.cpp @@ -615,23 +615,23 @@ namespace Game } } - void* Com_GetParseThreadInfo() + char* Com_GetParseThreadInfo() { if (Game::Sys_IsMainThread()) { - return reinterpret_cast(0x6466628); + return reinterpret_cast(0x6466628); } else if (Game::Sys_IsRenderThread()) { - return reinterpret_cast(0x646AC34); + return reinterpret_cast(0x646AC34); } else if (Game::Sys_IsServerThread()) { - return reinterpret_cast(0x646F240); + return reinterpret_cast(0x646F240); } else if(Game::Sys_IsDatabaseThread()) { - return reinterpret_cast(0x647384C); + return reinterpret_cast(0x647384C); } else { @@ -641,7 +641,7 @@ namespace Game void Com_SetParseNegativeNumbers(int parse) { - char* g_parse = reinterpret_cast(Com_GetParseThreadInfo()); + char* g_parse = Com_GetParseThreadInfo(); if (g_parse) { diff --git a/src/Game/Functions.hpp b/src/Game/Functions.hpp index 8de0c3f0..6934165e 100644 --- a/src/Game/Functions.hpp +++ b/src/Game/Functions.hpp @@ -684,6 +684,6 @@ namespace Game void Load_IndexBuffer(void* data, IDirect3DIndexBuffer9** storeHere, int count); void Load_VertexBuffer(void* data, IDirect3DVertexBuffer9** where, int len); - void* Com_GetParseThreadInfo(); + char* Com_GetParseThreadInfo(); void Com_SetParseNegativeNumbers(int parse); }