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

More Sentry crash prevention #3647

Merged
merged 3 commits into from
Feb 21, 2024
Merged

Conversation

KJeff01
Copy link
Member

@KJeff01 KJeff01 commented Feb 21, 2024

A couple more nullptr/dead checks.

A drive-by commit for making a huge hack relating to died more obvious (it can mean 3 things) in case someone tries to change that in the future so saves don't get weird.

Died can actually mean three things:
1. If = 0, alive.
2. If = 1 (NOT_CURRENT_LIST), not in the current list (mission swapping or went into a transporter).
3. If > 1, dead.

Replacing some values with NOT_CURRENT_LIST explicitly so this doesn't bite anyone attempting to change that.
Copy link

sentry-io bot commented Feb 21, 2024

Sentry Issue: WARZONE2100-3S2

Copy link

sentry-io bot commented Feb 21, 2024

Sentry Issue: WARZONE2100-3SF

@KJeff01 KJeff01 added this to the 4.5.0-beta1 milestone Feb 21, 2024
@KJeff01 KJeff01 merged commit c65c43d into Warzone2100:master Feb 21, 2024
38 checks passed
@KJeff01 KJeff01 deleted the sentryFixes2 branch February 21, 2024 20:52
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