mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-25 08:22:17 +00:00
Codechange: replace BSWAP32/BSWAP16 with std::byteswap
This commit is contained in:
+1
-1
@@ -355,7 +355,7 @@ void SurveyTimers(nlohmann::json &survey)
|
||||
void SurveyGrfs(nlohmann::json &survey)
|
||||
{
|
||||
for (GRFConfig *c = _grfconfig; c != nullptr; c = c->next) {
|
||||
auto grfid = fmt::format("{:08x}", BSWAP32(c->ident.grfid));
|
||||
auto grfid = fmt::format("{:08x}", std::byteswap(c->ident.grfid));
|
||||
auto &grf = survey[grfid];
|
||||
|
||||
grf["md5sum"] = FormatArrayAsHex(c->ident.md5sum);
|
||||
|
||||
Reference in New Issue
Block a user