diff --git a/apps/openmw-mp/Script/Types.hpp b/apps/openmw-mp/Script/Types.hpp index be365cfb8..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((void*)(addr)) {} -#else - template - constexpr ScriptFunctionPointer(Function addr) : ScriptIdentity(addr), addr(addr) {} -#endif }; struct ScriptFunctionData