Codechange: Remove unnecessary vector for writing GRF parameter JSON (#11763)

This commit is contained in:
Jonathan G Rennison 2024-01-12 21:38:31 +00:00 committed by GitHub
parent 54b57fbfeb
commit 479490d7e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 6 deletions

View File

@ -338,12 +338,7 @@ void SurveyGrfs(nlohmann::json &survey)
if ((c->palette & GRFP_BLT_MASK) == GRFP_BLT_32BPP) grf["blitter"] = "32bpp";
grf["is_static"] = HasBit(c->flags, GCF_STATIC);
std::vector<uint32_t> parameters;
for (int i = 0; i < c->num_params; i++) {
parameters.push_back(c->param[i]);
}
grf["parameters"] = parameters;
grf["parameters"] = span<const uint32_t>(c->param.data(), c->num_params);
}
}