From f0fd20fdd649eb61fa0d2444d910a2b0882e3580 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Mon, 6 Apr 2009 22:46:15 +0200 Subject: Moved many MessageOut constructions around No real point in having these abstracted away twice. We're using network interfaces now instead of functions structured in namespaces. --- src/gui/equipmentwindow.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gui/equipmentwindow.cpp') diff --git a/src/gui/equipmentwindow.cpp b/src/gui/equipmentwindow.cpp index 46e68ef8..ef90e674 100644 --- a/src/gui/equipmentwindow.cpp +++ b/src/gui/equipmentwindow.cpp @@ -175,13 +175,13 @@ void EquipmentWindow::action(const gcn::ActionEvent &event) if (event.getId() == "unequip" && mSelected > -1) { #ifdef TMWSERV_SUPPORT // TODO: merge these! - player_node->unequipItem(mSelected); + Item *item = mEquipment->getEquipment(mSelected); #else - Item* item = (mSelected != EQUIP_AMMO_SLOT) ? + Item *item = (mSelected != EQUIP_AMMO_SLOT) ? mInventory->getItem(mEquipment->getEquipment(mSelected)) : mInventory->getItem(mEquipment->getArrows()); - player_node->unequipItem(item); #endif + player_node->unequipItem(item); mSelected = -1; } } -- cgit v1.2.3-70-g09d2