aboutsummaryrefslogtreecommitdiffstats
path: root/src/inventory.cpp
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2016-02-04 09:24:54 -0500
committerClyne Sullivan <tullivan99@gmail.com>2016-02-04 09:24:54 -0500
commit2cb30b167401f1785ebfa744e8612639a150deb2 (patch)
treea796345db5e2dd3da3ab51367de8ae292a4c497b /src/inventory.cpp
parent5f18e763031091a34dc7e279424c2359f63e3d9c (diff)
bug fixes
Diffstat (limited to 'src/inventory.cpp')
-rw-r--r--src/inventory.cpp6
1 files changed, 6 insertions, 0 deletions
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);
}