Change: [Script] Match FormatString behaviour more closely

This commit is contained in:
glx22
2024-03-01 19:10:35 +01:00
committed by Loïc Guilloux
parent ae27ce12a7
commit 3a71f36393
2 changed files with 57 additions and 36 deletions

View File

@@ -137,10 +137,11 @@ private:
int idx;
Param *param;
bool used;
const char *cmd;
ParamCheck(StringID owner, int idx, Param *param) : owner(owner), idx(idx), param(param), used(false) {}
ParamCheck(StringID owner, int idx, Param *param) : owner(owner), idx(idx), param(param), used(false), cmd(nullptr) {}
void Encode(std::back_insert_iterator<std::string> &output);
void Encode(std::back_insert_iterator<std::string> &output, const char *cmd);
};
using ParamList = std::vector<ParamCheck>;