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

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 {