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

Fixed an issue where offline chars were not removed properly

This commit is contained in:
Mordred 2018-02-13 22:37:45 +01:00
parent 677c583d80
commit 8bcd5f8fe5

View file

@ -501,8 +501,8 @@ bool Core::Zone::update( uint32_t currTime )
if( ( !pSession->getPlayer()->getCurrentZone() )
|| ( pSession->getPlayer()->getCurrentZone() != shared_from_this() ) )
{
// if( pSession->getPlayer()->getCell() )
// removeActor( pSession->getPlayer() );
if( pSession->getPlayer()->getCell() )
removeActor( pSession->getPlayer() );
it = m_sessionSet.erase( it );
continue;