diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/buy.cpp | 1 | ||||
-rw-r--r-- | src/gui/item_amount.cpp | 2 | ||||
-rw-r--r-- | src/gui/popupmenu.cpp | 2 | ||||
-rw-r--r-- | src/gui/sell.cpp | 1 |
4 files changed, 5 insertions, 1 deletions
diff --git a/src/gui/buy.cpp b/src/gui/buy.cpp index 10b66678..86ea764b 100644 --- a/src/gui/buy.cpp +++ b/src/gui/buy.cpp @@ -31,6 +31,7 @@ #include "../net/network.h" #include <sstream> +#include <assert.h> BuyDialog::BuyDialog(): Window("Buy"), diff --git a/src/gui/item_amount.cpp b/src/gui/item_amount.cpp index 51b67e72..e67992ea 100644 --- a/src/gui/item_amount.cpp +++ b/src/gui/item_amount.cpp @@ -134,7 +134,7 @@ void ItemAmountWindow::action(const std::string& eventId) } else if (eventId == "Slide") { - itemAmountTextBox->setInt(itemAmountSlide->getValue()*inventoryWindow->getItem()->getQuantity()); + itemAmountTextBox->setInt((int)(itemAmountSlide->getValue()*inventoryWindow->getItem()->getQuantity())); } } diff --git a/src/gui/popupmenu.cpp b/src/gui/popupmenu.cpp index d47fe340..77f95d2f 100644 --- a/src/gui/popupmenu.cpp +++ b/src/gui/popupmenu.cpp @@ -21,6 +21,8 @@ * $Id$ */ +#include <assert.h> + #include "popupmenu.h" #include "gui.h" #include "inventorywindow.h" diff --git a/src/gui/sell.cpp b/src/gui/sell.cpp index bc1fe2e8..ae432a43 100644 --- a/src/gui/sell.cpp +++ b/src/gui/sell.cpp @@ -31,6 +31,7 @@ #include "../net/network.h" #include <sstream> +#include <assert.h> SellDialog::SellDialog(): Window("Sell") |