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 crash in DebugScreenHandler #440

Merged
merged 1 commit into from
Nov 17, 2024
Merged

fix crash in DebugScreenHandler #440

merged 1 commit into from
Nov 17, 2024

Conversation

Alexdoru
Copy link
Member

@Alexdoru Alexdoru commented Nov 17, 2024

If a mod cancels the RenderGameOverlayEvent.Pre for type == DEBUG, the lists event.left and event.right will be empty, therefore we need to check the sizes before adding to a specific index.

@boubou19 boubou19 merged commit da9e3e8 into master Nov 17, 2024
1 check passed
@boubou19 boubou19 deleted the fix-crash branch November 17, 2024 21:46
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