Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2009-11-14 14:14:21 +0000
committerStijn Buys <ingar@osirion.org>2009-11-14 14:14:21 +0000
commit4293e8854a30443e4d5818fc55df404976dbfd9b (patch)
tree816665ba37acfd5a39c0544c3b2acbf04c8c5d3d /src/core/item.cc
parenta993d31910b63a1f897e470842934e6ffefad32c (diff)
update the info system, fixes network info exchange
Diffstat (limited to 'src/core/item.cc')
-rw-r--r--src/core/item.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/core/item.cc b/src/core/item.cc
index a029674..a6cc89f 100644
--- a/src/core/item.cc
+++ b/src/core/item.cc
@@ -12,17 +12,15 @@ namespace core
/* ---- class Item ------------------------------------------------- */
-Item::Item(const unsigned int class_id, const unsigned int info_id)
+Item::Item(const Info *info)
{
- item_class_id = class_id;
- item_info_id = info_id;
-
+ item_info = info;
item_amount = 0;
- item_info = Info::find(info_id);
}
Item::~Item()
{
+ item_info = 0;
item_amount = 0;
}