Skip to content

Fix Achievement Progression Issues with Multiple Task Types #321

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

Merged
merged 1 commit into from
Jan 13, 2022

Conversation

TheNexusAvenger
Copy link
Member

Fixes #260

This pull request resolves an issue with StartUnlockableAchievementsAsync where null objects would be passed. This is due to a behavior with casing using as making the value null if the type is incorrect. This affects missions like "Pirate Legend" which involves a Smash task, Script task (...because of course...), and Obtain Item task. Combinations like this would result in the progress callback being called with null values, leading to an exception when trying to progress a null mission task.

Copy link
Member

@enteryournamehere enteryournamehere left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good find! Fix looks good to me.

@TheNexusAvenger TheNexusAvenger merged commit 0f6786b into dev Jan 13, 2022
@TheNexusAvenger TheNexusAvenger deleted the fix/null-mission-task-cast branch January 13, 2022 17:26
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.

Maelstrom Trench pirates don't smash well
2 participants