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

Prevent percentage memory calculation from overflowing #73

Merged
merged 1 commit into from
Nov 10, 2024

Conversation

bscout9956
Copy link
Contributor

The current implementation causes a backwards logic due to overflowing/type casting from calculated values being too big on systems with too much RAM.

I've fixed it by capping it to the max of uint32_t.

More info at: https://gtaforums.com/topic/736512-open-limit-adjuster/?do=findComment&comment=1072454536

@ThirteenAG ThirteenAG merged commit 18b9563 into GTAmodding:master Nov 10, 2024
1 check passed
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