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

solve request issues #10232

Merged
merged 1 commit into from
Sep 19, 2024
Merged

solve request issues #10232

merged 1 commit into from
Sep 19, 2024

Conversation

Raycoms
Copy link
Contributor

@Raycoms Raycoms commented Sep 18, 2024

Closes ##10231
Closes #

Changes proposed in this pull request

  • Stop int overflow

Testing

  • Yes I tested this before submitting it.
  • I also did a multiplayer test.

Review please

@@ -757,7 +757,7 @@ public static int hasBuildingEnoughElseCount(@NotNull final IBuilding provider,

if (totalCount >= count)
{
return Integer.MAX_VALUE;
return totalCount;
Copy link
Contributor

Choose a reason for hiding this comment

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

I recall some callee's are using that max value return for logic

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll double check

Copy link
Contributor Author

Choose a reason for hiding this comment

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

save

@Raycoms Raycoms merged commit 6ab992c into version/main Sep 19, 2024
5 checks passed
@Raycoms Raycoms deleted the more-wh-fixes branch September 19, 2024 09:39
Raycoms added a commit that referenced this pull request Sep 19, 2024
solve request issues
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.

3 participants