diff options
author | Charles Pigott <charlespigott@googlemail.com> | 2020-12-27 18:10:40 +0000 |
---|---|---|
committer | Charles Pigott <charlespigott@googlemail.com> | 2020-12-27 18:30:53 +0000 |
commit | e0161cf8da063f3cb6fa5283b2616bc8cde0438f (patch) | |
tree | 7c2717f7c88e942e285117d29b8d50c2912ca498 /src/network | |
parent | 1bb0e6ed8cfba61818343a36111af3902f7d7199 (diff) | |
download | openttd-e0161cf8da063f3cb6fa5283b2616bc8cde0438f.tar.xz |
Fix b408fe7: Don't try to construct a std::string from nullptr
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/network_content.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/network_content.cpp b/src/network/network_content.cpp index 7f610d9d3..46e371e6f 100644 --- a/src/network/network_content.cpp +++ b/src/network/network_content.cpp @@ -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! */ |