From 4eec3f17deafad4ed2fc28fae76fe1f4994e3076 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Thu, 4 Dec 2008 00:47:20 +0100 Subject: Don't reuse the setupWindow variable from the game Fixes crash on exit caused by double deletion. --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 charInfo(MAX_SLOT + 1); Colour *textColour; -extern Window *setupWindow; - // This anonymous namespace hides whatever is inside from other modules. namespace { -- cgit v1.2.3-70-g09d2