Skip to content

Conversation

adamosimpson21
Copy link

Please do not update the README or Change Log, we will do this when we merge your PR.

This PR (delete as applicable)

  • Updates the Documentation
  • Adds a new feature
  • Fixes a bug

Describe the changes below:

Fixes a Bug

Solves Issue #7186

Adds check for nullish gamepads while looping through gamepads. If there was a nullish gamepad, phaser would crash, so I just simply checked to see if there was a gamepad to stop it from crashing

If gamepads were nullish when trying to stop listeners, it would crash the scene. This change will check if they exist before removing listeners
removing console log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant