Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added protection from null/undefined parameter to "setOpponentLive" method #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Added protection from null/undefined parameter to "setOpponentLive" method #1

wants to merge 1 commit into from

Conversation

plissken2013es
Copy link

I found that when you wait for the first cutscene and credits to pass, the game tries to start the "demo" level 0. But it has no guards[1] defined, so the it crashes leaving this error on the console:
"phaser.js:74099 TypeError: Cannot read property 'charName' of undefined(…)xhr.onload @ phaser.js:74099"
I added a protection for this case.

…ive" method

I found that when you wait for the first cutscene and credits to pass, the game tries to start the "demo" level 0. But it has no guards[1] defined, so the it crashes leaving this error on the console: 
"phaser.js:74099 TypeError: Cannot read property 'charName' of undefined(…)xhr.onload @ phaser.js:74099"
I added a protection for this case.
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