[Fix] Missing return statement prevented 'm' from also closing the map.

This commit is contained in:
Allanis 2013-03-10 15:15:39 +00:00
parent 0421e2a43b
commit 23a982fbb5

View File

@ -32,7 +32,10 @@ static void map_mouse(SDL_Event* event, double mx, double my);
// Open the map window. // Open the map window.
void map_open(void) { 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. // Set the position to focus on current system.
map_xpos = cur_system->pos.x; map_xpos = cur_system->pos.x;