Skip to content

Commit 26a177d

Browse files
committed
Fix null returns for play()
The play() method in the AnimationManager could return null for a valid animation name.
1 parent 33a8bfd commit 26a177d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/animation/AnimationManager.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ Phaser.AnimationManager.prototype = {
227227
this.currentAnim.paused = false;
228228
return this.currentAnim.play(frameRate, loop, killOnComplete);
229229
}
230+
return this.currentAnim;
230231
}
231232
else
232233
{

0 commit comments

Comments
 (0)