mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-25 19:17:45 +00:00
remove member on logout
This commit is contained in:
parent
e80d51ff72
commit
f7c0449ee0
1 changed files with 4 additions and 0 deletions
|
@ -73,6 +73,10 @@ void Sapphire::World::Session::close()
|
||||||
if( m_pPlayer )
|
if( m_pPlayer )
|
||||||
{
|
{
|
||||||
m_pPlayer->clearBuyBackMap();
|
m_pPlayer->clearBuyBackMap();
|
||||||
|
if( m_pPlayer->isInParty() )
|
||||||
|
{
|
||||||
|
m_pPlayer->getPartyLeader()->removePartyMember( m_pPlayer );
|
||||||
|
}
|
||||||
// do one last update to db
|
// do one last update to db
|
||||||
m_pPlayer->updateSql();
|
m_pPlayer->updateSql();
|
||||||
// reset the zone, so the zone handler knows to remove the actor
|
// reset the zone, so the zone handler knows to remove the actor
|
||||||
|
|
Loading…
Add table
Reference in a new issue