From 709ea524902d7a88c7d982e15d7904489a646cc8 Mon Sep 17 00:00:00 2001 From: Mr-Auto <36127424+Mr-Auto@users.noreply.github.com> Date: Mon, 25 Sep 2023 11:03:44 +0200 Subject: [PATCH] thank you clang, a useful error for once --- src/game_api/rpc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game_api/rpc.cpp b/src/game_api/rpc.cpp index 0f391eba6..a82312e8e 100644 --- a/src/game_api/rpc.cpp +++ b/src/game_api/rpc.cpp @@ -2005,7 +2005,7 @@ void activate_hundun_hack(bool activate) offsets[4] = memory.at_exe(offsets[4]); offsets[5] = memory.at_exe(offsets[5]); - char old_code[3][7]; + char old_code[3][8]; std::memcpy(old_code[0], (void*)offsets[0], 7); std::memcpy(old_code[1], (void*)offsets[1], 7);