summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/game/GameView.cpp1
-rw-r--r--src/interface/Button.cpp3
2 files changed, 1 insertions, 3 deletions
diff --git a/src/game/GameView.cpp b/src/game/GameView.cpp
index 106e4e0..df755f0 100644
--- a/src/game/GameView.cpp
+++ b/src/game/GameView.cpp
@@ -1490,7 +1490,6 @@ void GameView::NotifyNotificationsChanged(GameModel * sender)
}
notificationComponents.clear();
-
std::vector<Notification*> notifications = sender->GetNotifications();
int currentY = YRES-23;
diff --git a/src/interface/Button.cpp b/src/interface/Button.cpp
index a9b0606..d5cc382 100644
--- a/src/interface/Button.cpp
+++ b/src/interface/Button.cpp
@@ -151,10 +151,9 @@ void Button::OnMouseUp(int x, int y, unsigned int button)
if(isButtonDown)
{
+ isButtonDown = false;
DoAction();
}
-
- isButtonDown = false;
}
void Button::OnMouseClick(int x, int y, unsigned int button)