Fixes out of bounds checking for enemy death animation.