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;