diff --git a/src/client/component/gsc/script_error.cpp b/src/client/component/gsc/script_error.cpp index 0d6ae30e..15b71d72 100644 --- a/src/client/component/gsc/script_error.cpp +++ b/src/client/component/gsc/script_error.cpp @@ -87,8 +87,7 @@ namespace gsc void safe_func() { static utils::hook::detour hook; - - const auto stub = []() + static const auto stub = []() { __try { @@ -101,7 +100,7 @@ namespace gsc }; const auto ptr = rva + 0_b; - hook.create(ptr, stub); + hook.create(reinterpret_cast(ptr), stub); } }