mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-29 07:37:45 +00:00
Sync chardata on session close
This commit is contained in:
parent
25fdeb4aa1
commit
208d39ad62
1 changed files with 4 additions and 0 deletions
|
@ -77,8 +77,12 @@ void Core::Session::close()
|
||||||
|
|
||||||
// remove the session from the player
|
// remove the session from the player
|
||||||
if( m_pPlayer )
|
if( m_pPlayer )
|
||||||
|
{
|
||||||
|
// do one last update to db
|
||||||
|
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
|
||||||
m_pPlayer->setCurrentZone( nullptr );
|
m_pPlayer->setCurrentZone( nullptr );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t Core::Session::getId() const
|
uint32_t Core::Session::getId() const
|
||||||
|
|
Loading…
Add table
Reference in a new issue