Skip to content

Commit f04c16d

Browse files
committed
Bail out on undefined data.
1 parent d65c526 commit f04c16d

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/animation/AnimationManager.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,11 @@ Phaser.AnimationManager.prototype = {
8383
*/
8484
loadFrameData: function (frameData, frame) {
8585

86+
if (typeof frameData === 'undefined')
87+
{
88+
return false;
89+
}
90+
8691
if (this.isLoaded)
8792
{
8893
// We need to update the frameData that the animations are using

0 commit comments

Comments
 (0)