diff options
Diffstat (limited to 'src/engine.cpp')
-rw-r--r-- | src/engine.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/engine.cpp b/src/engine.cpp index 0209fbbc..c5bd9f10 100644 --- a/src/engine.cpp +++ b/src/engine.cpp @@ -176,7 +176,13 @@ Engine::Engine(): Engine::~Engine() { // Delete sprite sets - //delete monsterset; + std::map<int, Spriteset*>::iterator i; + for (i = monsterset.begin(); i != monsterset.end(); i++) + { + delete (*i).second; + } + monsterset.clear(); + delete npcset; delete emotionset; delete weaponset; @@ -185,6 +191,7 @@ Engine::~Engine() attackTarget->decRef(); delete itemDb; + delete debugInfo; } Map *Engine::getCurrentMap() |