Fix item crash
This commit is contained in:
1 parent
bed3f20118
commit
3ad5afb81c
2 files changed
+10
-16
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user