void cDelayedHideChar::Expire() { P_PLAYER pc = dynamic_cast<P_PLAYER>(FindCharBySerial( destSer )); if( !pc || pc->socket() ) // break if the char has relogged in the meantime return; pc->setHidden( 1 ); pc->resend( true ); }