mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 18:26:45 +01:00
14 lines
742 B
Diff
14 lines
742 B
Diff
diff --git a/apps/openmw-mp/Script/Types.hpp b/apps/openmw-mp/Script/Types.hpp
|
|
index be365cfb8..204dcdc7b 100644
|
|
--- a/apps/openmw-mp/Script/Types.hpp
|
|
+++ b/apps/openmw-mp/Script/Types.hpp
|
|
@@ -105,7 +105,7 @@ struct ScriptFunctionPointer : public ScriptIdentity
|
|
void *addr;
|
|
#if (!defined(__clang__) && defined(__GNUC__))
|
|
template<typename R, typename... Types>
|
|
- constexpr ScriptFunctionPointer(Function<R, Types...> addr) : ScriptIdentity(addr), addr((void*)(addr)) {}
|
|
+ constexpr ScriptFunctionPointer(Function<R, Types...> addr) : ScriptIdentity(addr), addr(addr) {}
|
|
#else
|
|
template<typename R, typename... Types>
|
|
constexpr ScriptFunctionPointer(Function<R, Types...> addr) : ScriptIdentity(addr), addr(addr) {}
|