From 23a982fbb5e4bd8941661e9706022475baf7f0f2 Mon Sep 17 00:00:00 2001
From: Allanis <allanis@saracraft.net>
Date: Sun, 10 Mar 2013 15:15:39 +0000
Subject: [PATCH] [Fix] Missing return statement prevented 'm' from also
 closing the map.

---
 src/map.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/map.c b/src/map.c
index 6c2af33..427c74a 100644
--- a/src/map.c
+++ b/src/map.c
@@ -32,7 +32,10 @@ static void map_mouse(SDL_Event* event, double mx, double my);
 
 // Open the map window.
 void map_open(void) {
-	if(map_wid) map_close(NULL);
+	if(map_wid) {
+		map_close(NULL);
+		return;
+	}
 
 	// Set the position to focus on current system.
 	map_xpos = cur_system->pos.x;