diff options
Diffstat (limited to 'src/client/inventorywindow.cc')
-rw-r--r-- | src/client/inventorywindow.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/client/inventorywindow.cc b/src/client/inventorywindow.cc index 2b956c4..7912d0d 100644 --- a/src/client/inventorywindow.cc +++ b/src/client/inventorywindow.cc @@ -327,11 +327,9 @@ void InventoryWindow::act_eject() std::ostringstream cmdstr; cmdstr << "remote eject "; - cmdstr << inventorywindow_listview->selected()->item()->info()->type()->label() << " "; - cmdstr << inventorywindow_listview->selected()->item()->info()->label() << " "; + cmdstr << inventorywindow_listview->selected()->item()->id() << " "; cmdstr << inventorywindow_ejectslider->value(); - con_debug "Executing command '" << cmdstr.str() << "'" << std::endl; core::CommandBuffer::exec(cmdstr.str()); show_item_info(0); |