aboutsummaryrefslogtreecommitdiff
path: root/engines/illusions/duckman/duckman_inventory.h
diff options
context:
space:
mode:
authorEric Fry2018-06-27 23:12:40 +1000
committerEugene Sandulenko2018-07-20 06:43:33 +0000
commit608f2f1f1ae524fd6ffc656dfcef3985988adaa9 (patch)
tree57859b99a9b507065cc90e3e1affcbbdd4415fb6 /engines/illusions/duckman/duckman_inventory.h
parent9ad048f8a6c6380fe8ca6534afcae30d3b1ada37 (diff)
downloadscummvm-rg350-608f2f1f1ae524fd6ffc656dfcef3985988adaa9.tar.gz
scummvm-rg350-608f2f1f1ae524fd6ffc656dfcef3985988adaa9.tar.bz2
scummvm-rg350-608f2f1f1ae524fd6ffc656dfcef3985988adaa9.zip
ILLUSIONS: Refactor duckman inventory code to remove verbose init logic
Replaced Common::String with c string array in slider menu init logic
Diffstat (limited to 'engines/illusions/duckman/duckman_inventory.h')
-rw-r--r--engines/illusions/duckman/duckman_inventory.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/engines/illusions/duckman/duckman_inventory.h b/engines/illusions/duckman/duckman_inventory.h
index 05048f4eac..f8faf5d4bc 100644
--- a/engines/illusions/duckman/duckman_inventory.h
+++ b/engines/illusions/duckman/duckman_inventory.h
@@ -37,9 +37,6 @@ struct DMInventorySlot {
struct DMInventoryItem {
uint32 _objectId;
uint32 _propertyId;
- DMInventoryItem() : _objectId(0) {}
- DMInventoryItem(uint32 objectId, uint32 propertyId)
- : _objectId(objectId), _propertyId(propertyId) {}
};
class DuckmanInventory {
@@ -49,7 +46,7 @@ public:
public:
IllusionsEngine_Duckman *_vm;
Common::Array<DMInventorySlot> _inventorySlots;
- Common::Array<DMInventoryItem> _inventoyItems;
+ Common::Array<DMInventoryItem> _inventoryItems;
void initInventory();
void openInventory();
void addInventoryItem(uint32 objectId);