mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-05 18:27:47 +00:00
Do not allow creation of a linkshell if already existing
This commit is contained in:
parent
48046fd10c
commit
0c6a0b0323
1 changed files with 5 additions and 1 deletions
|
@ -164,10 +164,14 @@ Sapphire::LinkshellPtr Sapphire::World::Manager::LinkshellMgr::createLinkshell(
|
|||
linkshellId = lastIdx + 1;
|
||||
}
|
||||
|
||||
// check if a linkshell with the same name already exists
|
||||
auto lsIt = m_linkshellNameMap.find( name );
|
||||
if( lsIt != m_linkshellNameMap.end() )
|
||||
return nullptr;
|
||||
|
||||
uint64_t masterId = player.getCharacterId();
|
||||
|
||||
// TODO: remove this messy set
|
||||
|
||||
std::set< uint64_t > memberSet;
|
||||
std::set< uint64_t > leaderSet;
|
||||
std::set< uint64_t > inviteSet;
|
||||
|
|
Loading…
Add table
Reference in a new issue