Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/game/StarCollectionDatabase.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/game/StarCollectionDatabase.cpp')
-rw-r--r--source/game/StarCollectionDatabase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/game/StarCollectionDatabase.cpp b/source/game/StarCollectionDatabase.cpp
index d8d573d..40e7595 100644
--- a/source/game/StarCollectionDatabase.cpp
+++ b/source/game/StarCollectionDatabase.cpp
@@ -109,7 +109,7 @@ Collectable CollectionDatabase::parseMonsterCollectable(String const& name, Json
Collectable CollectionDatabase::parseItemCollectable(String const& name, Json const& config) const {
Collectable collectable = parseGenericCollectable(name, config);
auto itemDatabase = Root::singleton().itemDatabase();
- auto item = itemDatabase->item(ItemDescriptor(config.getString("item")));
+ auto item = itemDatabase->itemShared(ItemDescriptor(config.getString("item")));
collectable.title = item->friendlyName();
collectable.description = item->description();