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

summaryrefslogtreecommitdiff
path: root/source/game/StarPlayerStorage.hpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2023-07-24 17:54:31 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2023-07-24 17:54:31 +1000
commita2d901bd66178bbaacc2fec3acd07e7a27b9235f (patch)
treecc4ed0a2d3403d5e3a02c3e0482adfc840ce5121 /source/game/StarPlayerStorage.hpp
parent5f0e44d60e6925dc3c9e6a6888e540012d4ddaa7 (diff)
Fix ToolUser exception when swapping player
Also made /swap by name exclude the current player when searching
Diffstat (limited to 'source/game/StarPlayerStorage.hpp')
-rw-r--r--source/game/StarPlayerStorage.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/game/StarPlayerStorage.hpp b/source/game/StarPlayerStorage.hpp
index 4b9edc7..9f7fd4a 100644
--- a/source/game/StarPlayerStorage.hpp
+++ b/source/game/StarPlayerStorage.hpp
@@ -19,7 +19,7 @@ public:
// Returns nothing if index is out of bounds.
Maybe<Uuid> playerUuidAt(size_t index);
// Returns nothing if name doesn't match a player.
- Maybe<Uuid> playerUuidByName(String const& name);
+ Maybe<Uuid> playerUuidByName(String const& name, Maybe<Uuid> except = {});
// Also returns the diskStore Json if needed.
Json savePlayer(PlayerPtr const& player);