Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/client/trademenu.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/trademenu.cc b/src/client/trademenu.cc
index 3bd4814..b6f0cc2 100644
--- a/src/client/trademenu.cc
+++ b/src/client/trademenu.cc
@@ -172,7 +172,7 @@ void TradeMenu::set_item(ui::ListItem *item)
menu_slider->set_range(1, max_amount);
menu_slider->show();
- amount = menu_slider->value();
+ amount = (long) menu_slider->value();
std::ostringstream commandstr;
commandstr << "remote sell " << item->info()->type()->label() << " " << item->info()->label() << " " << amount;
@@ -222,7 +222,7 @@ void TradeMenu::set_item(ui::ListItem *item)
if (max_amount > 0) {
menu_slider->set_range(1, max_amount);
menu_slider->show();
- amount = menu_slider->value();
+ amount = (long) menu_slider->value();
std::ostringstream commandstr;
commandstr << "remote buy " << item->info()->type()->label() << " " << item->info()->label() << " " << amount;