From b535e411646fe1ff0f65c221f6ae6be01aa2f19d Mon Sep 17 00:00:00 2001 From: Tobias Tribble Date: Sun, 25 Jun 2023 08:50:09 -0500 Subject: [PATCH] Fix actorActiveSpells pairs, docs --- apps/openmw/mwlua/magicbindings.cpp | 2 +- files/lua_api/openmw/types.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/openmw/mwlua/magicbindings.cpp b/apps/openmw/mwlua/magicbindings.cpp index 941ab2b4eb..ba4f9d906d 100644 --- a/apps/openmw/mwlua/magicbindings.cpp +++ b/apps/openmw/mwlua/magicbindings.cpp @@ -554,7 +554,7 @@ namespace MWLua return sol::as_function([lua, &self]() mutable -> std::pair { if (!self.isEnd()) { - auto result = sol::make_object(lua, self.mIterator->getId()); + auto result = sol::make_object(lua, self.mIterator->getId().serializeText()); auto index = sol::make_object(lua, self.mIndex + 1); self.advance(); return { index, result }; diff --git a/files/lua_api/openmw/types.lua b/files/lua_api/openmw/types.lua index 4ae8f9aefe..55f3888c90 100644 --- a/files/lua_api/openmw/types.lua +++ b/files/lua_api/openmw/types.lua @@ -206,7 +206,7 @@ -- @param self -- @param #string effectId effect ID -- @param #string extraParam Optional skill or attribute ID --- @return #ActiveEffect if such an effect is active, nil otherwise +-- @return openmw.core#ActiveEffect if such an effect is active, nil otherwise --- -- Completely removes the active effect from the actor.