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

summaryrefslogtreecommitdiff
path: root/source/game/StarUniverseClient.cpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2023-10-25 15:30:31 +1100
committerKae <80987908+Novaenia@users.noreply.github.com>2023-10-25 15:30:31 +1100
commit48b8d43ff891216735720b9844dba31583a4245b (patch)
treed383eddd30adbb6028b5f9718723a3be5b62c252 /source/game/StarUniverseClient.cpp
parentced12b62e0f07a87acde665589fe333075b35178 (diff)
Add player Lua functions from SE
Diffstat (limited to 'source/game/StarUniverseClient.cpp')
-rw-r--r--source/game/StarUniverseClient.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/game/StarUniverseClient.cpp b/source/game/StarUniverseClient.cpp
index 3423f2d..c492d89 100644
--- a/source/game/StarUniverseClient.cpp
+++ b/source/game/StarUniverseClient.cpp
@@ -574,7 +574,7 @@ bool UniverseClient::switchPlayer(String const& name) {
if (auto uuid = m_playerStorage->playerUuidByName(name, mainPlayer()->uuid()))
return switchPlayer(*uuid);
else
- return false;
+ return switchPlayer(Uuid(name));
}
UniverseClient::ReloadPlayerCallback& UniverseClient::playerReloadPreCallback() {