InventoryBuilder used for access panel and hotbar

This commit is contained in:
MihailRis
2024-01-21 18:34:44 +03:00
parent d9408a7cfc
commit 9e3c4fb00c
3 changed files with 23 additions and 36 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ Inventory::Inventory(size_t size) : slots(size) {
}
ItemStack& Inventory::getSlot(size_t index) {
return slots[index];
return slots.at(index);
}
size_t Inventory::findEmptySlot(size_t begin, size_t end) const {