Not always, but occasionally I get an error, where the world is null.
I don’t always seem to get an error. But when I do, from usually messing around and doing actions very fast and in unpredictable ways:
[Fault] exception, information=TypeError: Error #1009: Cannot access a property or method of a null object reference.
In one class.
if (target_line != null)
{
(target_line as TargetLine).removeTHIS();
target_line = null;
}
and in the TargetLine class
public function removeTHIS():void
{
(world as Game).targets -= 1;
world.remove(this);
}