1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-19 04:29:09 +00:00

Fix b408fe7: Don't try to construct a std::string from nullptr

This commit is contained in:
Charles Pigott
2020-12-27 18:10:40 +00:00
parent 1bb0e6ed8c
commit e0161cf8da
2 changed files with 2 additions and 2 deletions

View File

@@ -539,7 +539,7 @@ void ClientNetworkContentSocketHandler::AfterDownload()
TarScanner ts;
std::string fname = GetFullFilename(this->curInfo, false);
ts.AddFile(sd, fname.c_str());
ts.AddFile(sd, fname);
if (this->curInfo->type == CONTENT_TYPE_BASE_MUSIC) {
/* Music can't be in a tar. So extract the tar! */