aboutsummaryrefslogtreecommitdiff
path: root/engines/pink/archive.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/pink/archive.cpp')
-rw-r--r--engines/pink/archive.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/engines/pink/archive.cpp b/engines/pink/archive.cpp
index ab6ab781b8..e4605af31d 100644
--- a/engines/pink/archive.cpp
+++ b/engines/pink/archive.cpp
@@ -33,7 +33,6 @@ enum {
kNullObject = 0
};
-
enum {
kActionHide,
kActionLoop,
@@ -90,21 +89,23 @@ static const struct RuntimeClass {
int id;
} classMap[] = {
{"GamePage", kGamePage},
+ {"InventoryItem", kInventoryItem},
{"ModuleProxy", kModuleProxy}
};
static Object* createObject(int objectId){
switch (objectId){
case kGamePage:
- return new GamePage();
+ return new GamePage;
+ case kInventoryItem:
+ return new InventoryItem;
case kModuleProxy:
- return new ModuleProxy();
+ return new ModuleProxy;
default:
return nullptr;
}
}
-
Archive::Archive(Common::File &file)
: _file(file)
{