summaryrefslogtreecommitdiff
path: root/src/gui/inventorywindow.cpp
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2006-03-09 01:20:48 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2006-03-09 01:20:48 +0000
commit78ab0ec914d3c5a97f162905afb3dede53f8b9ed (patch)
tree53e386c28d5621535c76c35c20f28b7dd6235ee3 /src/gui/inventorywindow.cpp
parent3bd2abeeffe9fb9b23293975b159ee2ddc868e5b (diff)
downloadmana-78ab0ec914d3c5a97f162905afb3dede53f8b9ed.tar.gz
mana-78ab0ec914d3c5a97f162905afb3dede53f8b9ed.tar.bz2
mana-78ab0ec914d3c5a97f162905afb3dede53f8b9ed.tar.xz
mana-78ab0ec914d3c5a97f162905afb3dede53f8b9ed.zip
Use std::auto_ptr in some places.
Diffstat (limited to 'src/gui/inventorywindow.cpp')
-rw-r--r--src/gui/inventorywindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/inventorywindow.cpp b/src/gui/inventorywindow.cpp
index 3b786f62..5227152c 100644
--- a/src/gui/inventorywindow.cpp
+++ b/src/gui/inventorywindow.cpp
@@ -53,7 +53,7 @@ InventoryWindow::InventoryWindow():
useButton = new Button("Use");
dropButton = new Button("Drop");
- items = new ItemContainer(player_node->mInventory);
+ items = new ItemContainer(player_node->mInventory.get());
invenScroll = new ScrollArea(items);
invenScroll->setPosition(8, 8);
invenScroll->setHorizontalScrollPolicy(gcn::ScrollArea::SHOW_NEVER);