1
0
Fork 0

Codefix: Do not assign nullptr to std::string_view.

pull/14172/head
frosch 2025-04-30 12:38:35 +02:00 committed by frosch
parent 36ce1f890a
commit 9e90d4ed79
1 changed files with 1 additions and 1 deletions

View File

@ -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: