Skip to content

Commit 2e9dc68

Browse files
committed
Tidied up a redundant if call.
1 parent b4e7da7 commit 2e9dc68

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/core/StateManager.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -337,10 +337,7 @@ Phaser.StateManager.prototype = {
337337
this.loadComplete();
338338
}
339339

340-
if (this.current === this._pendingState)
341-
{
342-
this._pendingState = null;
343-
}
340+
this._pendingState = null;
344341
}
345342

346343
},

0 commit comments

Comments
 (0)