diff options
Diffstat (limited to 'src/core/item.cc')
-rw-r--r-- | src/core/item.cc | 8 |
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; } |