1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-06 06:32:56 +01:00

Fix plugin buttons not drawing text

This commit is contained in:
Ted John
2021-12-04 10:57:23 +00:00
committed by GitHub
parent 66bf0aa1a6
commit 58f30f78d7

View File

@@ -107,7 +107,7 @@ public:
ImageId() = default;
explicit constexpr ImageId(ImageIndex index)
: _index(index)
: _index(index == INDEX_UNDEFINED ? ImageIndexUndefined : index)
{
}
@@ -144,7 +144,7 @@ public:
bool HasValue() const
{
return GetIndex() != INDEX_UNDEFINED;
return GetIndex() != ImageIndexUndefined;
}
bool HasPrimary() const