Fix item crash

This commit is contained in:
YourWishes committed 2026-07-02 16:04:41 -05:00
1 parent bed3f20118
commit 3ad5afb81c
2 files changed
+10 -16

No files matched your search

+1 -2
View File
@@ -22,8 +22,7 @@ void inventoryInit(
inventory->storage = storage;
inventory->storageSize = storageSize;
// Zero item ids.
memoryZero(inventory->storage, sizeof(inventorystack_t) * storageSize);
memoryZero(storage, sizeof(inventorystack_t) * storageSize);
}
bool_t inventoryItemExists(const inventory_t *inventory, const itemid_t item) {