From 2cb30b167401f1785ebfa744e8612639a150deb2 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Thu, 4 Feb 2016 09:24:54 -0500 Subject: bug fixes --- src/inventory.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/inventory.cpp') diff --git a/src/inventory.cpp b/src/inventory.cpp index de60030..93bdeb6 100644 --- a/src/inventory.cpp +++ b/src/inventory.cpp @@ -88,6 +88,12 @@ void initInventorySprites(void){ } void destroyInventory(void){ + + while(!itemMap.empty()){ + delete itemMap.front(); + itemMap.erase(itemMap.begin()); + } + Mix_FreeChunk(swordSwing); } -- cgit v1.2.3