richardlord/Ash — Issue #1: EntityList.removeAll()'s little bug
Author: daisuda
Created: 2012-02-07 13:04:06+00:00
State: open

internal function removeAll() : void
{
while( entity )
{
var entity : Entity = entity;
head = head.next;
entity.previous = null;
entity.next = null;
}
tail = null;
}
------------
right codes:
internal function removeAll() : void
{
while( head )
{
var entity : Entity = entity;
head = head.next;
entity.previous = null;
entity.next = null;
}
tail = null;
}