diff --git a/source/game/StarInventoryTypes.hpp b/source/game/StarInventoryTypes.hpp index a666f3f..f184d48 100644 --- a/source/game/StarInventoryTypes.hpp +++ b/source/game/StarInventoryTypes.hpp @@ -19,7 +19,7 @@ enum class EquipmentSlot : uint8_t { }; extern EnumMap const EquipmentSlotNames; -typedef pair BagSlot; +typedef pair BagSlot; strong_typedef(Empty, SwapSlot); strong_typedef(Empty, TrashSlot); diff --git a/source/game/scripting/StarLuaGameConverters.cpp b/source/game/scripting/StarLuaGameConverters.cpp index 94ac14b..e5f8811 100644 --- a/source/game/scripting/StarLuaGameConverters.cpp +++ b/source/game/scripting/StarLuaGameConverters.cpp @@ -31,7 +31,7 @@ Maybe LuaConverter::to(LuaEngine&, LuaValue const& return {}; } else if (auto table = v.ptr()) - return {BagSlot(table->get(1).toString(), table->get(2))}; + return {BagSlot(table->get(1).toString(), (uint8_t)table->get(2))}; else return {}; }