1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-08 19:57:46 +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 607143ea7c
commit 0d4b846e79

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;