aboutsummaryrefslogtreecommitdiff
path: root/saga
diff options
context:
space:
mode:
authorAndrew Kurushin2005-04-22 15:43:42 +0000
committerAndrew Kurushin2005-04-22 15:43:42 +0000
commitf3049a41f409942acc39b81a3ad2bee924711d86 (patch)
tree51c737d103b8f38e9029ed6dbd63843c85d166d5 /saga
parent2ea2b51ed54e006dea55d7b55ebab1b6ce1ad052 (diff)
downloadscummvm-rg350-f3049a41f409942acc39b81a3ad2bee924711d86.tar.gz
scummvm-rg350-f3049a41f409942acc39b81a3ad2bee924711d86.tar.bz2
scummvm-rg350-f3049a41f409942acc39b81a3ad2bee924711d86.zip
fixed non assigned buttons in IHNM
svn-id: r17750
Diffstat (limited to 'saga')
-rw-r--r--saga/interface.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/saga/interface.cpp b/saga/interface.cpp
index 08b54e37a1..b090294130 100644
--- a/saga/interface.cpp
+++ b/saga/interface.cpp
@@ -553,8 +553,10 @@ void Interface::handleCommandUpdate(const Point& mousePoint) {
if (!_vm->mouseButtonPressed()) { // remove pressed flag
- _inventoryUpButton->state = 0;
- _inventoryDownButton->state = 0;
+ if (_inventoryUpButton) {
+ _inventoryUpButton->state = 0;
+ _inventoryDownButton->state = 0;
+ }
}
panelButton = _mainPanel.hitTest(mousePoint, kPanelAllButtons);
@@ -975,8 +977,10 @@ void Interface::handleConverseUpdate(const Point& mousePoint) {
PanelButton *last = _conversePanel.currentButton;
if (!_vm->mouseButtonPressed()) { // remove pressed flag
- _converseUpButton->state = 0;
- _converseDownButton->state = 0;
+ if (_converseUpButton) {
+ _converseUpButton->state = 0;
+ _converseDownButton->state = 0;
+ }
}
_conversePanel.currentButton = converseHitTest(mousePoint);