Skip to content

fix bad assert in GetStateLabelIndex. #2492

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
Apr 8, 2024

Conversation

prof-hastig
Copy link
Contributor

This function only gets used for validating 'nodelay', but in debug mode this assert always gets triggered if the nodelay flag is put on a later state - at this point the spawn state's address has already been resolved. This PR treats all such occurences as invalid which allows the calling code to print its warning

@coelckers coelckers merged commit 6777423 into ZDoom:master Apr 8, 2024
@prof-hastig prof-hastig deleted the bad_assert branch April 9, 2024 09:27
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