diff --git a/source-code/source/plugins/TLAC/Components/Input/InputEmulator.cpp b/source-code/source/plugins/TLAC/Components/Input/InputEmulator.cpp index 9bad48c..e598cc0 100644 --- a/source-code/source/plugins/TLAC/Components/Input/InputEmulator.cpp +++ b/source-code/source/plugins/TLAC/Components/Input/InputEmulator.cpp @@ -296,7 +296,7 @@ namespace TLAC::Components inputKey = 0x20; if (keyboard->IsDoubleTapped(VK_ESCAPE)) - ((void(*)(unsigned int, int, int))DOEXIT_ADDRESS)(0, 0, 0); + *(bool*)SHOULD_EXIT_BOOL_ADDRESS = true; return inputKey; }