diff --git a/src/servers/sapphire_zone/Session.cpp b/src/servers/sapphire_zone/Session.cpp index 66e0b06b..3d5070de 100644 --- a/src/servers/sapphire_zone/Session.cpp +++ b/src/servers/sapphire_zone/Session.cpp @@ -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