Fix: [NewGRF] Display an error, if NewGRF reference out-of-bounds string parameters in gender/plural choices. (#13881)

This commit is contained in:
frosch
2025-03-23 20:43:12 +01:00
committed by GitHub
parent 42eb513897
commit ca801d55d5
2 changed files with 15 additions and 2 deletions
+6
View File
@@ -153,6 +153,12 @@ public:
return this->parameters.size() - this->offset;
}
/** Return the number of parameters. */
size_t GetNumParameters() const
{
return this->parameters.size();
}
/** Get the type of a specific element. */
char32_t GetTypeAtOffset(size_t offset) const
{