Merge branch 'master' into jgrpp
# Conflicts: # regression/regression/result.txt # src/autoreplace_cmd.cpp # src/industry_gui.cpp # src/landscape.cpp # src/network/network_content.cpp # src/newgrf_roadstop.cpp # src/pathfinder/yapf/yapf_ship.cpp # src/road_gui.cpp # src/saveload/ai_sl.cpp # src/saveload/saveload.h # src/saveload/vehicle_sl.cpp # src/station.cpp # src/station_gui.cpp # src/video/cocoa/cocoa_ogl.h # src/video/sdl2_opengl_v.h # src/video/video_driver.hpp # src/video/win32_v.h # src/widget_type.h # src/widgets/dropdown.cpp # src/widgets/dropdown_type.h # src/window.cpp
This commit is contained in:
@@ -738,7 +738,10 @@ bool ExtractTar(const std::string &tar_filename, Subdirectory subdir)
|
||||
for (auto &it2 : _tar_filelist[subdir]) {
|
||||
if (tar_filename != it2.second.tar_filename) continue;
|
||||
|
||||
filename.replace(p + 1, std::string::npos, it2.first);
|
||||
/* it2.first is tarball + PATHSEPCHAR + name. */
|
||||
std::string_view name = it2.first;
|
||||
name.remove_prefix(name.find_first_of(PATHSEPCHAR) + 1);
|
||||
filename.replace(p + 1, std::string::npos, name);
|
||||
|
||||
DEBUG(misc, 9, " extracting %s", filename.c_str());
|
||||
|
||||
|
Reference in New Issue
Block a user