summaryrefslogtreecommitdiff
path: root/src/engine.cpp
diff options
context:
space:
mode:
authorGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-10-21 15:09:11 +0000
committerGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-10-21 15:09:11 +0000
commitee415eebaaae92a8af74d315fe5e39f40947e1f9 (patch)
tree42963cd9feb25031471c84a4a24e0f2a65b4577b /src/engine.cpp
parent59c3b69103bf9bc346f6a4337c2ede0f43bfb6bf (diff)
downloadmana-ee415eebaaae92a8af74d315fe5e39f40947e1f9.tar.gz
mana-ee415eebaaae92a8af74d315fe5e39f40947e1f9.tar.bz2
mana-ee415eebaaae92a8af74d315fe5e39f40947e1f9.tar.xz
mana-ee415eebaaae92a8af74d315fe5e39f40947e1f9.zip
Fixed current map not deleted on server change.
Diffstat (limited to 'src/engine.cpp')
-rw-r--r--src/engine.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/engine.cpp b/src/engine.cpp
index 6db89089..31a13b9f 100644
--- a/src/engine.cpp
+++ b/src/engine.cpp
@@ -58,6 +58,11 @@ Engine::Engine():
{
}
+Engine::~Engine()
+{
+ delete mCurrentMap;
+}
+
void Engine::changeMap(const std::string &mapPath)
{
// Clean up floor items