summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorMichael Lutz <michi@icosahedron.de>2020-12-06 21:11:47 +0100
committerMichael Lutz <michi@icosahedron.de>2020-12-27 13:19:25 +0100
commit5cbb2da79434ec002831bd72b2c81f9dcd469601 (patch)
treea1b8fea79609c446e36a38796269dad6a1db45fd /src/network
parent65f65ad2ad8f029b99ef60e931b6d86952777610 (diff)
downloadopenttd-5cbb2da79434ec002831bd72b2c81f9dcd469601.tar.xz
Codechange: Even more std::string usage in file IO.
Diffstat (limited to 'src/network')
-rw-r--r--src/network/network_content.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/network_content.cpp b/src/network/network_content.cpp
index dc14a59fc..7f610d9d3 100644
--- a/src/network/network_content.cpp
+++ b/src/network/network_content.cpp
@@ -543,7 +543,7 @@ void ClientNetworkContentSocketHandler::AfterDownload()
if (this->curInfo->type == CONTENT_TYPE_BASE_MUSIC) {
/* Music can't be in a tar. So extract the tar! */
- ExtractTar(fname.c_str(), BASESET_DIR);
+ ExtractTar(fname, BASESET_DIR);
unlink(fname.c_str());
}