1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-01 00:27:44 +00:00

also when logout

This commit is contained in:
collett 2020-05-12 03:06:04 +09:00
parent 0273931e4c
commit 302d06c038

View file

@ -72,6 +72,7 @@ void Sapphire::World::Session::close()
// remove the session from the player // remove the session from the player
if( m_pPlayer ) if( m_pPlayer )
{ {
m_pPlayer->clearBuyBackMap();
// 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