1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-25 22:17:45 +00:00

Sync chardata on session close

This commit is contained in:
Mordred 2018-11-01 13:05:10 +01:00
parent 25fdeb4aa1
commit 208d39ad62

View file

@ -77,8 +77,12 @@ void Core::Session::close()
// remove the session from the player
if( m_pPlayer )
{
// do one last update to db
m_pPlayer->updateSql();
// reset the zone, so the zone handler knows to remove the actor
m_pPlayer->setCurrentZone( nullptr );
}
}
uint32_t Core::Session::getId() const