avoid returnless fallthrough

This commit is contained in:
Zithia Satazaki 2023-10-30 15:11:15 -04:00
parent 86f02eab9b
commit 332fb8430b

View File

@ -15,6 +15,7 @@ LuaValue LuaConverter<InventorySlot>::from(LuaEngine& engine, InventorySlot k) {
return engine.createString("swap");
else if (k.is<TrashSlot>())
return engine.createString("trash");
else return {}; // avoid UB if every accounted-for case fails
}
Maybe<InventorySlot> LuaConverter<InventorySlot>::to(LuaEngine&, LuaValue const& v) {