1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-05 10:17:46 +00:00

Do not allow creation of a linkshell if already existing

This commit is contained in:
Mordred 2021-12-07 14:27:43 +01:00
parent 48046fd10c
commit 0c6a0b0323

View file

@ -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;