diff --git a/apps/openmw-mp/Script/Types.hpp b/apps/openmw-mp/Script/Types.hpp index cca05c42b..697dec40f 100644 --- a/apps/openmw-mp/Script/Types.hpp +++ b/apps/openmw-mp/Script/Types.hpp @@ -103,13 +103,9 @@ struct CallbackIdentity struct ScriptFunctionPointer : public ScriptIdentity { void *addr; -#if (!defined(__clang__) && defined(__GNUC__)) - template - constexpr ScriptFunctionPointer(Function addr) : ScriptIdentity(addr), addr(reinterpret_cast(addr)) {} -#else + template - constexpr ScriptFunctionPointer(Function addr) : ScriptIdentity(addr), addr(addr) {} -#endif + constexpr ScriptFunctionPointer(Function addr) : ScriptIdentity(addr), addr((void*)(addr)) {} }; struct ScriptFunctionData