From 86f02eab9b12a766f5f3f7ee6c18c96422779b46 Mon Sep 17 00:00:00 2001 From: Zithia Satazaki Date: Mon, 30 Oct 2023 15:05:42 -0400 Subject: [PATCH] these need to be {} wrapped to compile for some reason --- source/game/scripting/StarLuaGameConverters.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/game/scripting/StarLuaGameConverters.cpp b/source/game/scripting/StarLuaGameConverters.cpp index feb0261..c65eb83 100644 --- a/source/game/scripting/StarLuaGameConverters.cpp +++ b/source/game/scripting/StarLuaGameConverters.cpp @@ -21,16 +21,16 @@ Maybe LuaConverter::to(LuaEngine&, LuaValue const& if (auto str = v.ptr()) { auto string = str->toString(); if (string.equalsIgnoreCase("swap")) - return SwapSlot(); + return {SwapSlot()}; else if (string.equalsIgnoreCase("trash")) - return TrashSlot(); + return {TrashSlot()}; else if (auto equipment = EquipmentSlotNames.leftPtr(str->toString())) - return *equipment; + return {*equipment}; else return {}; } else if (auto table = v.ptr()) - return BagSlot(table->get(1).toString(), table->get(2)); + return {BagSlot(table->get(1).toString(), table->get(2))}; else return {}; }