From a18fd685be62ff474bfbf7945d3b4ecb5a4ba769 Mon Sep 17 00:00:00 2001 From: Dr_Coomer <54870332+yoshisaac@users.noreply.github.com> Date: Sat, 20 Jan 2024 01:28:32 -0500 Subject: [PATCH] sizeof(char) is always 1 --- ImGuiExternal/Source.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 +}