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 stats reading in case there are multiple with same lostat identifier #131

Merged
merged 1 commit into from
Jun 16, 2021

Conversation

Zutatensuppe
Copy link
Collaborator

@Zutatensuppe Zutatensuppe commented Jun 16, 2021

In case there were multiple stats with same LoStatID the GetStatsMap function would break.
So instead of using x.Single() we now use x.First().

The bug is exposed by adding more StatIdentifiers, specifically in this case stat 0x6B (1501edc#diff-81eadb67a3a99129f099fe8d0230e9f7f1de1b30ea59330ae814d880fbf75f88R133) which occurs multiple times for the attached character save (leaf equipped)

The stat 0x6B is not used atm for anything and was just added for documentation purpose, so this fix should be fine, but needs more investigation.

rose.zip

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