use MB constant

This commit is contained in:
Lion Kortlepel
2022-03-24 15:16:24 +01:00
parent cd4332b790
commit b780a08f73
2 changed files with 2 additions and 4 deletions

View File

@@ -171,9 +171,7 @@ Version::Version(const std::array<uint8_t, 3>& v)
}
std::string Version::AsString() {
std::stringstream ss {};
ss << int(major) << "." << int(minor) << "." << int(patch);
return ss.str();
return fmt::format("{:d}.{:d}.{:d}", major, minor, patch);
}
void LogChatMessage(const std::string& name, int id, const std::string& msg) {