diff options
author | Shauren <shauren.trinity@gmail.com> | 2018-04-10 20:57:34 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2018-04-10 20:57:34 +0200 |
commit | fdb2b90685ebc3852740c424170101a196c29ebb (patch) | |
tree | b99fb1fa315ffc4e9d4bcd46262de685491a79dc /src/server/game/Cache/CharacterCache.h | |
parent | 4fa4b6df567eee2bef072f4faeb874d99faeef75 (diff) |
Core/Players: Prevent creating characters with duplicate name by reserving name early in the process
Closes #21656
Closes #21809
Diffstat (limited to 'src/server/game/Cache/CharacterCache.h')
-rw-r--r-- | src/server/game/Cache/CharacterCache.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Cache/CharacterCache.h b/src/server/game/Cache/CharacterCache.h index ed3239410c4..151b6dcba9e 100644 --- a/src/server/game/Cache/CharacterCache.h +++ b/src/server/game/Cache/CharacterCache.h @@ -55,7 +55,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; |