summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2008-12-04 00:47:20 +0100
committerIra Rice <irarice@gmail.com>2008-12-03 17:14:44 -0700
commit4eec3f17deafad4ed2fc28fae76fe1f4994e3076 (patch)
tree56a28d73d75484f03e4110fae1661e3a3325578a /src
parentf71dba822f42428f22741f183df9f1132fa9471c (diff)
downloadmana-4eec3f17deafad4ed2fc28fae76fe1f4994e3076.tar.gz
mana-4eec3f17deafad4ed2fc28fae76fe1f4994e3076.tar.bz2
mana-4eec3f17deafad4ed2fc28fae76fe1f4994e3076.tar.xz
mana-4eec3f17deafad4ed2fc28fae76fe1f4994e3076.zip
Don't reuse the setupWindow variable from the game
Fixes crash on exit caused by double deletion.
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index a85136ab..8f256405 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -96,6 +96,8 @@
#endif
namespace {
+ Window *setupWindow = 0;
+
struct SetupListener : public gcn::ActionListener
{
/**
@@ -131,8 +133,6 @@ LockedArray<LocalPlayer*> charInfo(MAX_SLOT + 1);
Colour *textColour;
-extern Window *setupWindow;
-
// This anonymous namespace hides whatever is inside from other modules.
namespace {