Skip to content

Commit 9f1946e

Browse files
committed
Tweens created in a paused state couldn't be started by a call to play. Fix phaserjs#4525
1 parent 06d1618 commit 9f1946e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/tweens/tween/Tween.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@ var Tween = new Class({
653653
{
654654
if (resetFromTimeline === undefined) { resetFromTimeline = false; }
655655

656-
if (this.state === TWEEN_CONST.ACTIVE || this.state === TWEEN_CONST.PENDING_ADD)
656+
if (this.state === TWEEN_CONST.ACTIVE || (this.state === TWEEN_CONST.PENDING_ADD && this._pausedState === TWEEN_CONST.PENDING_ADD))
657657
{
658658
return this;
659659
}

0 commit comments

Comments
 (0)