MADS: Fix palette corruption when playing animations