Skip to content

Conversation

@xezon
Copy link

@xezon xezon commented Aug 2, 2025

This change fixes the broken Shell Map and Campaign videos which were introduced by #1393.

The value GameLOD::m_numRAM was cast from unsigned long long to int which caused overflow and ended up with a negative value.

@xezon xezon added Bug Something is not working right, typically is user facing Major Severity: Minor < Major < Critical < Blocker ThisProject The issue was introduced by this project, or this task is specific to this project labels Aug 2, 2025
Copy link

@Mauller Mauller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, i don't see how these functions worked properly for systems with memory over 2GB before the change, considering they were using signed values.

@xezon xezon merged commit 9c27651 into TheSuperHackers:main Aug 3, 2025
14 checks passed
@xezon xezon deleted the xezon/fix-memory-benchmark branch August 3, 2025 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Something is not working right, typically is user facing Major Severity: Minor < Major < Critical < Blocker ThisProject The issue was introduced by this project, or this task is specific to this project

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants