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: hostage leader possibly nil #538

Merged
merged 1 commit into from
May 16, 2024
Merged

fix: hostage leader possibly nil #538

merged 1 commit into from
May 16, 2024

Conversation

akiver
Copy link
Collaborator

@akiver akiver commented May 16, 2024

ref akiver/cs-demo-manager#839

hostage.Leader() may return nil when a player is grabbing a hostage.
To match the CSGO behavior (it's not nil) I fallback to the new CS2 prop m_hHostageGrabber.

@markus-wa markus-wa merged commit 344da0b into master May 16, 2024
7 checks passed
@markus-wa markus-wa deleted the hostage branch May 16, 2024 09:11
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