summaryrefslogtreecommitdiff
path: root/misc_gui.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc_gui.c')
-rw-r--r--misc_gui.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/misc_gui.c b/misc_gui.c
index 0a6b19ccc..3d721ca29 100644
--- a/misc_gui.c
+++ b/misc_gui.c
@@ -1852,10 +1852,8 @@ static const WindowDesc _cheats_desc = {
void ShowCheatWindow(void)
{
- Window *w;
-
DeleteWindowById(WC_CHEATS, 0);
- w = AllocateWindowDesc(&_cheats_desc);
+ AllocateWindowDesc(&_cheats_desc);
}
/** Resize the widgets in a window