summaryrefslogtreecommitdiff
path: root/src/gui/equipmentwindow.cpp
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2009-02-04 18:36:02 -0700
committerIra Rice <irarice@gmail.com>2009-02-04 18:36:02 -0700
commitcd511bda4e07f5de49ef66eff9d2fe4d649c17b6 (patch)
tree2b309ba271d3a31739670e868bc340aab02cd75a /src/gui/equipmentwindow.cpp
parent3818b6db81341b840201996c186bdc8ad5e456e9 (diff)
downloadmana-cd511bda4e07f5de49ef66eff9d2fe4d649c17b6.tar.gz
mana-cd511bda4e07f5de49ef66eff9d2fe4d649c17b6.tar.bz2
mana-cd511bda4e07f5de49ef66eff9d2fe4d649c17b6.tar.xz
mana-cd511bda4e07f5de49ef66eff9d2fe4d649c17b6.zip
Simplified equipment window initialization, since only the local player
has an inventory or an equipment. Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/gui/equipmentwindow.cpp')
-rw-r--r--src/gui/equipmentwindow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/equipmentwindow.cpp b/src/gui/equipmentwindow.cpp
index 8a7b23ae..5ba9501d 100644
--- a/src/gui/equipmentwindow.cpp
+++ b/src/gui/equipmentwindow.cpp
@@ -58,9 +58,8 @@ static const int boxPosition[][2] = {
{129, 78} // EQUIP_AMMO_SLOT
};
-EquipmentWindow::EquipmentWindow(Equipment *equipment):
+EquipmentWindow::EquipmentWindow():
Window(_("Equipment")),
- mEquipment(equipment),
mSelected(-1)
{
mItemPopup = new ItemPopup();
@@ -89,6 +88,7 @@ EquipmentWindow::EquipmentWindow(Equipment *equipment):
mEquipBox[i].posY = boxPosition[i][1] + getTitleBarHeight();
}
+ mEquipment = player_node->mEquipment.get();
mInventory = player_node->getInventory();
}