diff options
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/inventory.cc | 2 | ||||
-rw-r--r-- | src/core/inventory.h | 2 | ||||
-rw-r--r-- | src/core/item.cc | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/core/inventory.cc b/src/core/inventory.cc index 6afa76f..c659178 100644 --- a/src/core/inventory.cc +++ b/src/core/inventory.cc @@ -29,7 +29,7 @@ void Inventory::set_timestamp(const unsigned long timestamp) inventory_timestamp = timestamp; } -void Inventory::mark() +void Inventory::set_dirty() { inventory_timestamp = core::game()->timestamp(); } diff --git a/src/core/inventory.h b/src/core/inventory.h index c715116..0a412b0 100644 --- a/src/core/inventory.h +++ b/src/core/inventory.h @@ -74,7 +74,7 @@ public: /** * @brief set the timestamp to the current game time */ - void mark(); + void set_dirty(); private: Items inventory_items; diff --git a/src/core/item.cc b/src/core/item.cc index 3528c1a..ca51775 100644 --- a/src/core/item.cc +++ b/src/core/item.cc @@ -16,7 +16,7 @@ Item::Item(const Info *info) { item_info = info; item_amount = 0; - item_price = 0; + item_price = info->price(); } Item::~Item() |