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

summaryrefslogtreecommitdiff
path: root/source/game/scripting/StarPlayerLuaBindings.cpp
diff options
context:
space:
mode:
authoremmaker <emmaker@myyahoo.com>2025-06-02 18:45:40 -0400
committeremmaker <emmaker@myyahoo.com>2025-06-02 18:45:40 -0400
commit855d34a80a9c1efdc4d04bd540efef5125e54974 (patch)
tree643349b03fe04879c05dbd170c259514562dd5ce /source/game/scripting/StarPlayerLuaBindings.cpp
parent00d70f62235437bd7f473d43c506a1c652236362 (diff)
Change type of markRead to Maybe<bool>
Diffstat (limited to 'source/game/scripting/StarPlayerLuaBindings.cpp')
-rwxr-xr-xsource/game/scripting/StarPlayerLuaBindings.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/game/scripting/StarPlayerLuaBindings.cpp b/source/game/scripting/StarPlayerLuaBindings.cpp
index 0f8bdfc..ff0b877 100755
--- a/source/game/scripting/StarPlayerLuaBindings.cpp
+++ b/source/game/scripting/StarPlayerLuaBindings.cpp
@@ -761,8 +761,8 @@ LuaCallbacks LuaBindings::makePlayerCallbacks(Player* player) {
return player->codexes()->markCodexUnread(codexId);
});
- callbacks.registerCallback("learnCodex", [player](String const& codexId, bool markRead) {
- player->codexes()->learnCodex(codexId, markRead);
+ callbacks.registerCallback("learnCodex", [player](String const& codexId, Maybe<bool> markRead) {
+ player->codexes()->learnCodex(codexId, markRead.value(false));
});
callbacks.registerCallback("getCodexes", [player]() -> Json {