diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-10-31 08:13:12 +1100 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-10-31 08:13:12 +1100 |
commit | ae014e5b6fd0e026d5563523b951429a3fe09e61 (patch) | |
tree | 375c9ffb2df48823202ccad14ba674666356d3e8 /source/game/scripting/StarLuaGameConverters.cpp | |
parent | 7d948f88393c504a77045461b210607d3da2aac9 (diff) |
Revert bag slot index type to uint8_t for now
was causing incompatibility on vanilla servers - need to add net element filters for legacy/modified servers first
Diffstat (limited to 'source/game/scripting/StarLuaGameConverters.cpp')
-rw-r--r-- | source/game/scripting/StarLuaGameConverters.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<InventorySlot> LuaConverter<InventorySlot>::to(LuaEngine&, LuaValue const& return {}; } else if (auto table = v.ptr<LuaTable>()) - return {BagSlot(table->get<LuaString>(1).toString(), table->get<unsigned>(2))}; + return {BagSlot(table->get<LuaString>(1).toString(), (uint8_t)table->get<unsigned>(2))}; else return {}; } |