From ec6c8f0c3c72cd7a9c9ea97721f12225cff42406 Mon Sep 17 00:00:00 2001 From: Bottinator22 <59987380+Bottinator22@users.noreply.github.com> Date: Sat, 28 Dec 2024 20:09:29 -0800 Subject: [PATCH] Update StarLuaConverters.hpp --- source/core/StarLuaConverters.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/core/StarLuaConverters.hpp b/source/core/StarLuaConverters.hpp index d9dfc67..c79cbdc 100644 --- a/source/core/StarLuaConverters.hpp +++ b/source/core/StarLuaConverters.hpp @@ -168,11 +168,11 @@ struct LuaConverter> { template struct LuaConverter> { static LuaValue from(LuaEngine& engine, Variant const& variant) { - return variant.call([&engine](auto const& a) { return luaFrom(engine, a); }); + return variant.call([&engine](auto const& a) { return engine.luaFrom(a); }); } static LuaValue from(LuaEngine& engine, Variant&& variant) { - return variant.call([&engine](auto& a) { return luaFrom(engine, std::move(a)); }); + return variant.call([&engine](auto& a) { return engine.luaFrom(std::move(a)); }); } static Maybe> to(LuaEngine& engine, LuaValue const& v) { @@ -217,7 +217,7 @@ struct LuaConverter> { static LuaValue from(LuaEngine& engine, MVariant const& variant) { LuaValue value; variant.call([&value, &engine](auto const& a) { - value = luaFrom(engine, a); + value = engine.luaFrom(a); }); return value; } @@ -225,7 +225,7 @@ struct LuaConverter> { static LuaValue from(LuaEngine& engine, MVariant&& variant) { LuaValue value; variant.call([&value, &engine](auto& a) { - value = luaFrom(engine, std::move(a)); + value = engine.luaFrom(std::move(a)); }); return value; }