Skip to content

Commit d695be7

Browse files
committed
Fixed FX entry on csv
1 parent cb7ae84 commit d695be7

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

ManyPacker/assets.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -303,11 +303,12 @@ namespace ManyPacker
303303
if (!FX.empty())
304304
{
305305
std::filesystem::create_directories(outputPath / "fx");
306-
for (auto& fx : FX)
306+
for (const auto& fx : FX)
307307
{
308-
std::replace(fx.begin(), fx.end(), '/', '\\');
308+
std::string new_fx = fx;
309+
std::replace(new_fx.begin(), new_fx.end(), '/', '\\');
309310

310-
std::string efx = fx + ".efx";
311+
std::string efx = new_fx + ".efx";
311312
auto fxPath = root / "raw" / "fx" / efx;
312313
if (!std::filesystem::exists(fxPath))
313314
{

0 commit comments

Comments
 (0)