--- deliantra/server/ext/login.ext 2007/05/26 15:44:03 1.48 +++ deliantra/server/ext/login.ext 2007/06/10 03:11:16 1.49 @@ -592,7 +592,7 @@ cf::wait_for_tick_begin; $pl->save; - unless ($pl->active) { + unless ($pl->active || $pl->ns) { # check refcounts, this is tricky and needs to be adjusted to fit server internals my $ob = $pl->ob; Scalar::Util::weaken $pl; @@ -603,8 +603,8 @@ my $ob_ref = $ob->refcnt_cnt; ## pl_ref == one from object + one from cf::PLAYER - ## ob_ref == one from simply being an object - if ($pl_ref == 2 && $ob_ref == 1) { + ## ob_ref == one from simply being an object + one from pl->observe + if ($pl_ref == 2 && $ob_ref == 2) { warn "player-scheduler destroy ", $ob->name;#d# # remove from sight and get fresh "copies"