Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/core
diff options
context:
space:
mode:
authorBottinator22 <59987380+Bottinator22@users.noreply.github.com>2024-12-28 20:09:29 -0800
committerGitHub <noreply@github.com>2024-12-28 20:09:29 -0800
commitec6c8f0c3c72cd7a9c9ea97721f12225cff42406 (patch)
tree1d820dd92b439eb03611987c9730fc4f52f50152 /source/core
parent922427e25f0e6edf00909f8c6ae1dfc6770c7308 (diff)
Update StarLuaConverters.hpp
Diffstat (limited to 'source/core')
-rw-r--r--source/core/StarLuaConverters.hpp8
1 files 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<Line<T, N>> {
template <typename FirstType, typename... RestTypes>
struct LuaConverter<Variant<FirstType, RestTypes...>> {
static LuaValue from(LuaEngine& engine, Variant<FirstType, RestTypes...> 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<FirstType, RestTypes...>&& 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<Variant<FirstType, RestTypes...>> to(LuaEngine& engine, LuaValue const& v) {
@@ -217,7 +217,7 @@ struct LuaConverter<MVariant<Types...>> {
static LuaValue from(LuaEngine& engine, MVariant<Types...> 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<MVariant<Types...>> {
static LuaValue from(LuaEngine& engine, MVariant<Types...>&& variant) {
LuaValue value;
variant.call([&value, &engine](auto& a) {
- value = luaFrom(engine, std::move(a));
+ value = engine.luaFrom(std::move(a));
});
return value;
}