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

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsource/game/scripting/StarPlayerLuaBindings.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/game/scripting/StarPlayerLuaBindings.cpp b/source/game/scripting/StarPlayerLuaBindings.cpp
index 833d718..ca7c3c2 100755
--- a/source/game/scripting/StarPlayerLuaBindings.cpp
+++ b/source/game/scripting/StarPlayerLuaBindings.cpp
@@ -745,7 +745,7 @@ LuaCallbacks LuaBindings::makePlayerCallbacks(Player* player) {
// codex bindings
callbacks.registerCallback("isCodexKnown", [player](String const& codexId) -> bool {
- return player.codexes()->codexKnown(codexId);
+ return player->codexes()->codexKnown(codexId);
});
callbacks.registerCallback("isCodexRead", [player](String const& codexId) -> bool {