Fix update frame wrong frame pointer bug (animation changed in a script or weaponframe but frame number stays, so function is actually using an unexpected memory address).
There's a side effect from this fix that jumpframe or sound in previous animation will still be played, so I'll wait feedbacks from script users.