--- deliantra/Deliantra-Client/DC/Protocol.pm 2006/07/03 22:58:37 1.54 +++ deliantra/Deliantra-Client/DC/Protocol.pm 2006/07/05 01:53:24 1.55 @@ -653,7 +653,10 @@ my ($self) = @_; $CFClient::UI::ROOT->on_refresh ("update_containers_$self" => sub { - for my $tag (keys %{ delete $self->{update_container} }) { + my $todo = delete $self->{update_container} + or return; + + for my $tag (keys %$todo) { if ($tag == 0) { update_floorbox; $::INVR->set_items ($self->{container}{0}) @@ -707,12 +710,6 @@ } else { $self->{update_container}{$item->{container}}++; $self->update_containers; -# if ($item->{container} == 0) { -# update_floorbox; -# update_container (0); -# } elsif ($item->{container} == $self->{player}{tag}) { -# $::INV->set_items ($self->{container}{$item->{container}}) -# } } }