diff options
Diffstat (limited to 'source/game')
-rwxr-xr-x | source/game/scripting/StarPlayerLuaBindings.cpp | 4 |
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 { |