mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 07:18:37 +00:00
[Cleanup] Fix Issues with Strings::Commify and Mob::SendStatsWindow (#4984)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user