skip "destroyed" actors and don't do more operations on it

This commit is contained in:
Rico Tzschichholz 2012-06-27 13:52:26 +02:00
parent abb374e256
commit a8dadcf008

View File

@ -536,6 +536,11 @@ namespace Gala
if (!list.contains (actor))
return false;
if (actor.is_destroyed ()) {
list.remove (actor);
return false;
}
actor.detach_animation ();
actor.opacity = 255;
actor.scale_x = 1.0f;