* The default implementation calls {@link Action#act(float)} on each action and removes actions that are complete.\r
* @param delta Time in seconds since the last frame. */\r
public void act (float delta) {\r
- for (int i = 0, n = actions.size; i < n; i++) {\r
+ for (int i = 0; i < actions.size; i++) {\r
Action action = actions.get(i);\r
- if (action.act(delta)) {\r
+ if (action.act(delta) && i < actions.size) {\r
actions.removeIndex(i);\r
action.setActor(null);\r
i--;\r
- n--;\r
}\r
}\r
}\r
tableBounds.height = height;\r
Stage stage = this.stage;\r
Rectangle scissorBounds = Pools.obtain(Rectangle.class);\r
- ScissorStack.calculateScissors(stage.getCamera(), stage.getSpriteBatch().getTransformMatrix(), tableBounds, scissorBounds);\r
+ stage.calculateScissors(tableBounds, scissorBounds);\r
if (ScissorStack.pushScissors(scissorBounds)) return true;\r
Pools.free(scissorBounds);\r
return false;\r