Skip to content

Conversation

@seer-by-sentry
Copy link

Fixes CLIENT-2B9. The issue was that: AIGroup::getCenter() divides by count without checking if count is zero after all members are filtered out.

  • Added a check to prevent division by zero when calculating the center of an AI group.
  • Ensures 'count' is greater than 0 before dividing 'center' coordinates by 'count'.

This fix was generated by Seer in Sentry, triggered automatically. 👁️ Run ID: 8446295

Not quite right? Click here to continue debugging with Seer.

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.

0 participants