summaryrefslogtreecommitdiffstats
path: root/src/ui/check.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/check.cpp')
-rw-r--r--src/ui/check.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/check.cpp b/src/ui/check.cpp
index 3b0fbc3..bc80b7c 100644
--- a/src/ui/check.cpp
+++ b/src/ui/check.cpp
@@ -73,11 +73,11 @@ bool CCheck::EventProcess(const Event &event)
CControl::EventProcess(event);
if ( event.type == EVENT_MOUSE_BUTTON_DOWN &&
- event.mouseButton.button == 1 &&
+ event.mouseButton.button == MOUSE_BUTTON_LEFT &&
(m_state & STATE_VISIBLE) &&
(m_state & STATE_ENABLE) )
{
- if ( CControl::Detect(event.mouseButton.pos) )
+ if ( CControl::Detect(event.mousePos) )
{
Event newEvent = event;
newEvent.type = m_eventType;