aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Cache/CharacterCache.h
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2018-04-10 20:57:34 +0200
committerShauren <shauren.trinity@gmail.com>2021-09-25 15:34:20 +0200
commit47630708f07b726cf8090c84cfa1d87b634609a0 (patch)
treeb835dc7a46cb666b6e869d091468b7aca4590d3f /src/server/game/Cache/CharacterCache.h
parent9775b4353ed4fabb1b2be531df5028060f4bf70b (diff)
Core/Players: Prevent creating characters with duplicate name by reserving name early in the process
Closes #21656 Closes #21809 (cherry picked from commit fdb2b90685ebc3852740c424170101a196c29ebb)
Diffstat (limited to 'src/server/game/Cache/CharacterCache.h')
-rw-r--r--src/server/game/Cache/CharacterCache.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Cache/CharacterCache.h b/src/server/game/Cache/CharacterCache.h
index a9a872da837..3f8a49dc861 100644
--- a/src/server/game/Cache/CharacterCache.h
+++ b/src/server/game/Cache/CharacterCache.h
@@ -58,7 +58,7 @@ class TC_GAME_API CharacterCache
bool HasCharacterCacheEntry(ObjectGuid const& guid) const;
CharacterCacheEntry const* GetCharacterCacheByGuid(ObjectGuid const& guid) const;
CharacterCacheEntry const* GetCharacterCacheByName(std::string const& name) const;
-
+ std::shared_ptr<std::string const> TryCreateCharacterWithName(std::string const& name) const;
ObjectGuid GetCharacterGuidByName(std::string const& name) const;
bool GetCharacterNameByGuid(ObjectGuid guid, std::string& name) const;
uint32 GetCharacterTeamByGuid(ObjectGuid guid) const;