summaryrefslogtreecommitdiff
path: root/src/gui/minimap.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/minimap.cpp')
-rw-r--r--src/gui/minimap.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/minimap.cpp b/src/gui/minimap.cpp
index 8394af227..d9ec8c52b 100644
--- a/src/gui/minimap.cpp
+++ b/src/gui/minimap.cpp
@@ -223,8 +223,8 @@ void Minimap::setMap(const Map *const map)
void Minimap::toggle()
{
- setVisible(!isVisible(), isSticky());
- mShow = isVisible();
+ setVisible(!isWindowVisible(), isSticky());
+ mShow = isWindowVisible();
}
void Minimap::draw(gcn::Graphics *graphics)