summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-03-10 12:23:50 -0600
committerIra Rice <irarice@gmail.com>2009-03-15 13:21:03 -0600
commitd6f89802e5aa32f266e881e43d6005e821040c57 (patch)
tree8279ca50117fced2dc26f7e6d4bdd7d5694af255 /src/game.cpp
parent4b459b50521f5d7a0518e229a20f14ed2f1d22f9 (diff)
downloadmana-d6f89802e5aa32f266e881e43d6005e821040c57.tar.gz
mana-d6f89802e5aa32f266e881e43d6005e821040c57.tar.bz2
mana-d6f89802e5aa32f266e881e43d6005e821040c57.tar.xz
mana-d6f89802e5aa32f266e881e43d6005e821040c57.zip
Fix some mem leaks
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 47f4ffd2..a346616f 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -204,7 +204,6 @@ void createGuiWindows(Network *network)
npcListDialog = new NpcListDialog(network);
npcStringDialog = new NpcStringDialog(network);
skillDialog = new SkillDialog();
- setupWindow = new Setup();
minimap = new Minimap();
equipmentWindow = new EquipmentWindow();
tradeWindow = new TradeWindow(network);
@@ -337,6 +336,8 @@ Game::Game(Network *network):
msg.writeInt32(tick_time);
engine->changeMap(map_path);
+
+ setupWindow->setInGame(true);
}
Game::~Game()