# HG changeset patch # User Jonathan G Rennison # Date 2024-01-12 21:38:31 # Node ID 449edb5ac6926bc94063c7966986bacb2fc5733d # Parent f8d5478487f3a6a7f39bc7b6aea0bc0a8c8554c7 Codechange: Remove unnecessary vector for writing GRF parameter JSON (#11763) diff --git a/src/survey.cpp b/src/survey.cpp --- a/src/survey.cpp +++ b/src/survey.cpp @@ -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 parameters; - for (int i = 0; i < c->num_params; i++) { - parameters.push_back(c->param[i]); - } - grf["parameters"] = parameters; + grf["parameters"] = span(c->param.data(), c->num_params); } }