From 075687c0f2ed5a3898953bd1c986a4c60f5d0d1f Mon Sep 17 00:00:00 2001 From: BenCat07 Date: Fri, 19 Jun 2020 19:10:19 +0200 Subject: [PATCH] Fix potential crash in killfeed color --- src/hacks/KillfeedColor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hacks/KillfeedColor.cpp b/src/hacks/KillfeedColor.cpp index 9185751b..0e7bb989 100644 --- a/src/hacks/KillfeedColor.cpp +++ b/src/hacks/KillfeedColor.cpp @@ -60,7 +60,7 @@ void GetTeamColor(Color *clr, void *this_, int data, int local) static std::vector no_stack_smash{}; static std::vector color_patches{}; // Defines to make our lives easier -#define DONT_SMASH_SMACK(offset) no_stack_smash.push_back(BytePatch{ addr, std::vector{ 0xC3, 0x90, 0x90 } }) +#define DONT_SMASH_SMACK(offset) no_stack_smash.push_back(BytePatch{ addr + offset, std::vector{ 0xC3, 0x90, 0x90 } }) #define PATCH_COLORS(patchNum) color_patches.push_back(BytePatch{ addrs[patchNum], patches[patchNum] }) static InitRoutine init([] {