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

summaryrefslogtreecommitdiff
path: root/source/game/scripting/StarPlayerLuaBindings.cpp
diff options
context:
space:
mode:
authorZithia Satazaki <qmanxt@gmail.com>2023-10-29 20:50:38 -0400
committerZithia Satazaki <qmanxt@gmail.com>2023-10-29 20:50:38 -0400
commit7c29196effe8d304c900eec1b35cafeebe344fb8 (patch)
tree92281456aa2cd154ffb4beacce258455af098fe1 /source/game/scripting/StarPlayerLuaBindings.cpp
parent4da15c42e0b0537134401881d3f3fcd221a0bcda (diff)
fix `player.description` being `player[" description"]` instead
Diffstat (limited to 'source/game/scripting/StarPlayerLuaBindings.cpp')
-rw-r--r--source/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 abd6d72..4fd0a5b 100644
--- a/source/game/scripting/StarPlayerLuaBindings.cpp
+++ b/source/game/scripting/StarPlayerLuaBindings.cpp
@@ -95,7 +95,7 @@ LuaCallbacks LuaBindings::makePlayerCallbacks(Player* player) {
}
});
- callbacks.registerCallback(" description", [player]() { return player->description(); });
+ callbacks.registerCallback( "description", [player]() { return player->description(); });
callbacks.registerCallback("setDescription", [player](String const& description) { player->setDescription(description); });
callbacks.registerCallback( "name", [player]() { return player->name(); });