diff options
Diffstat (limited to 'engines/supernova/state.h')
-rw-r--r-- | engines/supernova/state.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/supernova/state.h b/engines/supernova/state.h index 568d4cf22e..e47c906aa5 100644 --- a/engines/supernova/state.h +++ b/engines/supernova/state.h @@ -63,7 +63,10 @@ struct GameState { class Inventory { public: - Inventory(); + Inventory(int &inventoryScroll) + : _numObjects(0) + , _inventoryScroll(inventoryScroll) + {} void add(Object &obj); void remove(Object &obj); @@ -74,6 +77,7 @@ public: private: Object *_inventory[kMaxCarry]; + int &_inventoryScroll; int _numObjects; }; |