diff options
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/inventorywindow.cpp | 2 | ||||
-rw-r--r-- | src/gui/npcdialog.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/inventorywindow.cpp b/src/gui/inventorywindow.cpp index 54215ffc..0dbeb352 100644 --- a/src/gui/inventorywindow.cpp +++ b/src/gui/inventorywindow.cpp @@ -243,7 +243,7 @@ void InventoryWindow::mouseClicked(gcn::MouseEvent &event) Item *item = mItems->getSelectedItem(); - if (event.getSource() == mItems && item && isDoubleClick((int)item)) + if (event.getSource() == mItems && item && isDoubleClick(item->getInvIndex())) { if (isMainInventory() && item->getInfo().getActivatable()) diff --git a/src/gui/npcdialog.cpp b/src/gui/npcdialog.cpp index 5209d69b..61e2204d 100644 --- a/src/gui/npcdialog.cpp +++ b/src/gui/npcdialog.cpp @@ -407,7 +407,7 @@ void NpcDialog::mouseClicked(gcn::MouseEvent &mouseEvent) { action(gcn::ActionEvent(mButton, mButton->getActionEventId())); } - if (mouseEvent.getSource() == mTextBox && isDoubleClick((int)mTextBox)) + if (mouseEvent.getSource() == mTextBox && isDoubleClick((int)(long)mTextBox)) { if (mActionState == NPC_ACTION_NEXT || mActionState == NPC_ACTION_CLOSE) action(gcn::ActionEvent(mButton, mButton->getActionEventId())); |