From bb7d0368d057a243567003e0d060755cc6d0fe7e Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Mon, 29 Mar 2021 02:02:15 +0200 Subject: [PATCH] :bug: Correctly initialize empty objects --- Source/inv.cpp | 2 +- Source/items.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/inv.cpp b/Source/inv.cpp index bff7e14f1..780ca0ab7 100644 --- a/Source/inv.cpp +++ b/Source/inv.cpp @@ -2101,7 +2101,7 @@ void CleanupItems(int ii) if (currlevel == 21 & item[ii]._ix == CornerStone.x && item[ii]._iy == CornerStone.y) { CornerStone.item.IDidx = -1; - CornerStone.item._itype = ITYPE_MISC; + CornerStone.item._itype = ITYPE_NONE; CornerStone.item._iSelFlag = 0; CornerStone.item._ix = 0; CornerStone.item._iy = 0; diff --git a/Source/items.cpp b/Source/items.cpp index e2f371556..2ef262fd6 100644 --- a/Source/items.cpp +++ b/Source/items.cpp @@ -631,7 +631,7 @@ void InitItems() numitems = 0; for (i = 0; i < MAXITEMS; i++) { - item[i]._itype = ITYPE_MISC; + item[i]._itype = ITYPE_NONE; item[i]._ix = 0; item[i]._iy = 0; item[i]._iAnimFlag = FALSE;