Skip to content

Save demo HTML5 fix#294

Merged
Geokureli merged 1 commit intoHaxeFlixel:devfrom
ninjamuffin99:save-fix
Mar 10, 2022
Merged

Save demo HTML5 fix#294
Geokureli merged 1 commit intoHaxeFlixel:devfrom
ninjamuffin99:save-fix

Conversation

@ninjamuffin99
Copy link
Copy Markdown
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
Copy Markdown
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