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

Save demo HTML5 fix #294

Merged
merged 1 commit into from
Mar 10, 2022
Merged

Save demo HTML5 fix #294

merged 1 commit into from
Mar 10, 2022

Conversation

ninjamuffin99
Copy link
Member

When attempting to save, it either throws this._gameSave.data.boxPositions[a] is undefined or can't convert undefined to object.

It doesn't properly set the array on the dynamic object (_gameSave.data / _gameSave.data.boxPositions). This just redoes a bit of the behaviour to set the array properly, by creating a temp one that DOES get properly pushed to with the box data.

I think the code comment above the modified lines of code should also be changed as well to reflect the new behavious

@Geokureli
Copy link
Member

CI is failing for unrelated network reasons, right now. i'll check in the morning

@Geokureli Geokureli merged commit 5f9704f into HaxeFlixel:dev Mar 10, 2022
@ninjamuffin99 ninjamuffin99 deleted the save-fix branch March 10, 2022 18:19
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.

2 participants