mirror of https://github.com/OpenTTD/OpenTTD
Codefix: Do not assign nullptr to std::string_view.
parent
36ce1f890a
commit
9e90d4ed79
|
@ -76,7 +76,7 @@ std::optional<std::string> ContentInfo::GetTextfile(TextfileType type) const
|
|||
break;
|
||||
case CONTENT_TYPE_NEWGRF: {
|
||||
const GRFConfig *gc = FindGRFConfig(std::byteswap(this->unique_id), FGCM_EXACT, &this->md5sum);
|
||||
tmp = gc != nullptr ? gc->filename.c_str() : nullptr;
|
||||
if (gc != nullptr) tmp = gc->filename;
|
||||
break;
|
||||
}
|
||||
case CONTENT_TYPE_BASE_GRAPHICS:
|
||||
|
|
Loading…
Reference in New Issue