diff options
Diffstat (limited to 'engines/supernova/state.cpp')
-rw-r--r-- | engines/supernova/state.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/supernova/state.cpp b/engines/supernova/state.cpp index 7548f920ac..0e99885e2e 100644 --- a/engines/supernova/state.cpp +++ b/engines/supernova/state.cpp @@ -53,6 +53,10 @@ void Inventory::remove(Object &obj) { } } +void Inventory::clear() { + _numObjects = 0; +} + Object *Inventory::get(int index) const { if (index < _numObjects) return _inventory[index]; |