aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction/inventory.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/parallaction/inventory.h')
-rw-r--r--engines/parallaction/inventory.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/parallaction/inventory.h b/engines/parallaction/inventory.h
index d08fa52813..8adf546529 100644
--- a/engines/parallaction/inventory.h
+++ b/engines/parallaction/inventory.h
@@ -27,13 +27,17 @@
namespace Parallaction {
+
struct Cnv;
struct InventoryItem {
- uint32 _id;
+ uint32 _id; // lowest 16 bits are always zero
uint16 _index;
};
+#define MAKE_INVENTORY_ID(x) (((x) & 0xFFFF) << 16)
+
+
extern InventoryItem _inventory[];
void initInventory();