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 debug memory overflow #3154

Merged
merged 1 commit into from
Jul 19, 2023

Conversation

Bassoonian
Copy link
Collaborator

Description

TheXaman's debug menu used PC_ITEMS_COUNT as an artifact, which would lead to memory issues if it was reduced in value (more specifically any reduction below 19). This PR fixes this issue by introducing a new DEBUG_MAX_MENU_ITEMS and a failsafe by limiting totalItems to the value of DEBUG_MAX_MENU_ITEMS if it would be larger, causing a limit in the amount of items shown rather than silently overwriting memory.

Discord contact info

bassoonian

@AsparagusEduardo AsparagusEduardo merged commit 6d7d7f1 into rh-hideout:upcoming Jul 19, 2023
@Bassoonian Bassoonian deleted the clean_upcoming branch July 23, 2023 20:38
@AsparagusEduardo AsparagusEduardo mentioned this pull request Sep 27, 2023
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