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 exception on solo suicide #262

Merged
merged 1 commit into from
Oct 22, 2023
Merged

Fix exception on solo suicide #262

merged 1 commit into from
Oct 22, 2023

Conversation

toberge
Copy link
Contributor

@toberge toberge commented Oct 21, 2023

Replace First with FirstOrDefault to avoid exception when there's no one else alive.

Closes #261

Replace First with FirstOrDefault to avoid exception when there's no one else alive.
Copy link
Contributor

@CraZyB1336 CraZyB1336 left a comment

Choose a reason for hiding this comment

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

Looks good

@toberge toberge merged commit 0195f09 into dev Oct 22, 2023
2 checks passed
@toberge toberge deleted the fix/solo-suicide-exception branch October 22, 2023 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done 🎉
Development

Successfully merging this pull request may close these issues.

Suicide leads to exception when soloing
2 participants