[Cleanup] Fix Issues with Strings::Commify and Mob::SendStatsWindow (#4984)

This commit is contained in:
Alex King authored and GitHub committed 2025-08-16 21:35:13 -04:00
1 parent adb3196ca5
commit ed3f6c2a40
2 files changed
+9 -3

No files matched your search

+6
View File
@@ -313,6 +313,12 @@ std::string Strings::Commify(const std::string &number)
auto string_length = static_cast<int>(number.length());
if (string_length == 3) {
return number;
} else if (string_length == 4 && number.starts_with("-")) {
return number;
}
int i = 0;
for (i = string_length - 3; i >= 0; i -= 3) {
if (i > 0) {