diff options
author | Stijn Buys <ingar@osirion.org> | 2012-10-20 16:35:26 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2012-10-20 16:35:26 +0000 |
commit | 75274ebd6ba90784f5aa837b7e5ea97fc6bfb720 (patch) | |
tree | a5d51a87bf3f20833df18bc40a3254b946716afb /src/client/trademenu.cc | |
parent | f01629dc14b1ee05b44d2e38b3dffbc1441fd85f (diff) |
Item id based inventory, support for weapon dealers.
Diffstat (limited to 'src/client/trademenu.cc')
-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 1de42e4..6421d43 100644 --- a/src/client/trademenu.cc +++ b/src/client/trademenu.cc @@ -192,7 +192,7 @@ void TradeMenu::set_item(ui::ListItem *item) amount = (long) menu_slider->value(); std::ostringstream commandstr; - commandstr << "remote sell " << item->info()->type()->label() << " " << item->info()->label() << " " << amount; + commandstr << "remote sell " << item->item()->id() << " " << amount; menu_buybutton->set_command(commandstr.str()); menu_buybutton->enable(); } @@ -237,7 +237,7 @@ void TradeMenu::set_item(ui::ListItem *item) amount = (long) menu_slider->value(); std::ostringstream commandstr; - commandstr << "remote buy " << item->info()->type()->label() << " " << item->info()->label() << " " << amount; + commandstr << "remote buy " << item->item()->id() << " " << amount; menu_buybutton->set_command(commandstr.str()); menu_buybutton->enable(); |