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

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source/game/items/StarCodexItem.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/game/items/StarCodexItem.cpp b/source/game/items/StarCodexItem.cpp
index aaaca3b..a23f4d7 100644
--- a/source/game/items/StarCodexItem.cpp
+++ b/source/game/items/StarCodexItem.cpp
@@ -33,6 +33,7 @@ void CodexItem::fireTriggered() {
if (codexLearned) {
player->queueUIMessage(Root::singleton().assets()->json("/codex.config:messages.learned").toString());
} else {
+ player->codexes()->markCodexUnread(m_codexId);
player->queueUIMessage(Root::singleton().assets()->json("/codex.config:messages.alreadyKnown").toString());
}
}