mirror of https://github.com/OpenRCT2/OpenRCT2.git
Return actual instead of default value in IniReader::GetString
This commit is contained in:
parent
5f43c37ca0
commit
3b3f0b2e6b
|
@ -145,7 +145,7 @@ public:
|
||||||
std::string GetString(const std::string &name, const std::string &defaultValue) const override
|
std::string GetString(const std::string &name, const std::string &defaultValue) const override
|
||||||
{
|
{
|
||||||
std::string result;
|
std::string result;
|
||||||
if (TryGetString(name, &result))
|
if (!TryGetString(name, &result))
|
||||||
{
|
{
|
||||||
result = defaultValue;
|
result = defaultValue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue