diff options
author | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-10-21 15:09:11 +0000 |
---|---|---|
committer | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-10-21 15:09:11 +0000 |
commit | ee415eebaaae92a8af74d315fe5e39f40947e1f9 (patch) | |
tree | 42963cd9feb25031471c84a4a24e0f2a65b4577b | |
parent | 59c3b69103bf9bc346f6a4337c2ede0f43bfb6bf (diff) | |
download | mana-ee415eebaaae92a8af74d315fe5e39f40947e1f9.tar.gz mana-ee415eebaaae92a8af74d315fe5e39f40947e1f9.tar.bz2 mana-ee415eebaaae92a8af74d315fe5e39f40947e1f9.tar.xz mana-ee415eebaaae92a8af74d315fe5e39f40947e1f9.zip |
Fixed current map not deleted on server change.
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | src/engine.cpp | 5 | ||||
-rw-r--r-- | src/engine.h | 5 |
3 files changed, 12 insertions, 0 deletions
@@ -12,6 +12,8 @@ src/gui/serverdialog.cpp, src/gui/inventorywindow.cpp: Removed window padding and replaced it by layout margin, so that the grip on resizable window is not outside the inner clip area. + * src/engine.cpp, src/engine.h: Fixed current map not deleted on server + change. 2007-10-20 Guillaume Melquiond <guillaume.melquiond@gmail.com> 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 diff --git a/src/engine.h b/src/engine.h index 826c939f..0e77bf3d 100644 --- a/src/engine.h +++ b/src/engine.h @@ -41,6 +41,11 @@ class Engine Engine(); /** + * Destructor. + */ + ~Engine(); + + /** * Returns the currently active map. */ Map *getCurrentMap() { return mCurrentMap; } |