diff options
Diffstat (limited to 'src/client')
-rw-r--r-- | src/client/trademenu.cc | 4 |
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; |