Fix item crash

This commit is contained in:
2026-07-02 16:04:41 -05:00
parent bed3f20118
commit 3ad5afb81c
2 changed files with 10 additions and 16 deletions
+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) {