summaryrefslogtreecommitdiffstats
path: root/src/ui/compass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/compass.cpp')
-rw-r--r--src/ui/compass.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/compass.cpp b/src/ui/compass.cpp
index f7be764..c7d0068 100644
--- a/src/ui/compass.cpp
+++ b/src/ui/compass.cpp
@@ -62,7 +62,7 @@ bool CCompass::EventProcess(const Event &event)
if ( event.type == EVENT_MOUSE_BUTTON_DOWN &&
event.mouseButton.button == 1)
{
- if ( CControl::Detect(event.pos) )
+ if ( CControl::Detect(event.mouseButton.pos) )
{
Event newEvent = event;
newEvent.type = m_eventType;