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

Fix broken dud potions when loaded from save #2381

Merged
merged 1 commit into from
May 19, 2015

Conversation

niamu
Copy link
Member

@niamu niamu commented May 17, 2015

When potions are loaded from save, their keys are now strings rather than numbers due to the JSON encode/decode process.

So we have to check for the correct type and change it as needed. Resolves #2300.

@CalebJohn
Copy link
Member

LGTM

@edisonout edisonout mentioned this pull request May 18, 2015
niamu added a commit that referenced this pull request May 19, 2015
Fix broken dud potions when loaded from save
@niamu niamu merged commit a8a2dbb into hawkthorne:master May 19, 2015
@niamu niamu deleted the dud_potions branch May 21, 2015 14:42
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.

Crashes when you use the Money or Dud potion
2 participants