diff --git a/apps/openmw/mwlua/magicbindings.cpp b/apps/openmw/mwlua/magicbindings.cpp index 1e7df15748..6469ac2115 100644 --- a/apps/openmw/mwlua/magicbindings.cpp +++ b/apps/openmw/mwlua/magicbindings.cpp @@ -23,6 +23,39 @@ #include "objectvariant.hpp" #include "worldview.hpp" +namespace MWLua +{ + // class returned via 'types.Actor.spells(obj)' in Lua + struct ActorSpells + { + const ObjectVariant mActor; + }; +} + +namespace sol +{ + template + struct is_automagical> : std::false_type + { + }; + template <> + struct is_automagical : std::false_type + { + }; + template <> + struct is_automagical : std::false_type + { + }; + template <> + struct is_automagical : std::false_type + { + }; + template <> + struct is_automagical : std::false_type + { + }; +} + namespace MWLua { sol::table initCoreMagicBindings(const Context& context) @@ -182,12 +215,6 @@ namespace MWLua return LuaUtil::makeReadOnly(magicApi); } - // class returned via 'types.Actor.spells(obj)' in Lua - struct ActorSpells - { - const ObjectVariant mActor; - }; - void addActorMagicBindings(sol::table& actor, const Context& context) { const MWWorld::Store* spellStore