summaryrefslogtreecommitdiff
path: root/src/widgets
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2021-03-09 10:58:33 +0100
committerGitHub <noreply@github.com>2021-03-09 10:58:33 +0100
commitb21ba566aeee82eb06f1b754ecc78d638dda9c56 (patch)
tree027fc6bcbaac65bf16f0b228b5e53d979fa1578d /src/widgets
parent9fdc8810053e695ad1220ff1d22cc3df984156c6 (diff)
downloadopenttd-b21ba566aeee82eb06f1b754ecc78d638dda9c56.tar.xz
Codechange: remove special strings for language and resolutions (#8824)
As OpenTTD grew, we found other ways to do this, and we are no longer in need for a hack like this.
Diffstat (limited to 'src/widgets')
-rw-r--r--src/widgets/dropdown_type.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/widgets/dropdown_type.h b/src/widgets/dropdown_type.h
index 5617027e3..a1f240e96 100644
--- a/src/widgets/dropdown_type.h
+++ b/src/widgets/dropdown_type.h
@@ -61,6 +61,7 @@ public:
StringID String() const override;
void SetParam(uint index, uint64 value) { decode_params[index] = value; }
+ void SetParamStr(uint index, const char *str) { this->SetParam(index, (uint64)(size_t)str); }
};
/**