diff --git a/ImGuiExternal/Source.cpp b/ImGuiExternal/Source.cpp index b546a5c..9f46350 100644 --- a/ImGuiExternal/Source.cpp +++ b/ImGuiExternal/Source.cpp @@ -83,7 +83,7 @@ void Draw() { static bool parsed_map = false; static std::string map_name_old = ""; for (int j = 0; j < 256; j++) { - char c = RPM(Game::engine + MAP_NAME + j*sizeof(char)); + char c = RPM(Game::engine + MAP_NAME + j); if (c == '\0') { map_name[j] = '\0'; break; @@ -147,7 +147,7 @@ void Draw() { DWORD list = RPM(Game::client + NAME_LIST) + 0x38; char name[256]; for (int j = 0; j < 256; j++) { - char c = RPM(list + 0x140 * i + j*sizeof(char)); + char c = RPM(list + 0x140 * i + j); if (c == '\0') { name[j] = '\0'; break; @@ -519,4 +519,4 @@ int main() { while (TRUE) { MainLoop(); } -} \ No newline at end of file +}