diff --git a/lib/libimhex/include/hex/api/event.hpp b/lib/libimhex/include/hex/api/event.hpp index be323ee7c..6108c9357 100644 --- a/lib/libimhex/include/hex/api/event.hpp +++ b/lib/libimhex/include/hex/api/event.hpp @@ -87,7 +87,7 @@ namespace hex { static void post(auto &&...args) noexcept { for (const auto &[id, event] : s_events) { if (id == E::id) - (*reinterpret_cast(event))(std::forward(args)...); + (*static_cast(event))(std::forward(args)...); } }