diff --git a/loader/include/Geode/utils/addresser.hpp b/loader/include/Geode/utils/addresser.hpp index ec4fe862..f0025603 100644 --- a/loader/include/Geode/utils/addresser.hpp +++ b/loader/include/Geode/utils/addresser.hpp @@ -10,7 +10,6 @@ #include #include #include -#include namespace geode::addresser { @@ -202,7 +201,7 @@ namespace geode::addresser { // do NOT delete the line below. // doing so breaks thunk adjusting on windows. // why? bruh idk - auto _ = *union_cast(&func); + auto _ = *(ptrdiff_t*)(&func); return (F)((intptr_t)self + Addresser::thunkOf(func)); } @@ -211,7 +210,7 @@ namespace geode::addresser { // do NOT delete the line below. // doing so breaks thunk adjusting on windows. // why? bruh idk - auto _ = *union_cast(&func); + auto _ = *(ptrdiff_t*)(&func); return (F)((intptr_t)self - Addresser::thunkOf(func)); } #endif