diff --git a/rts/Sim/Path/Default/PathEstimator.cpp b/rts/Sim/Path/Default/PathEstimator.cpp index 059d792431f..2327b7bef42 100644 --- a/rts/Sim/Path/Default/PathEstimator.cpp +++ b/rts/Sim/Path/Default/PathEstimator.cpp @@ -763,7 +763,7 @@ bool CPathEstimator::ReadFile(const std::string& cacheFileName, const std::strin sprintf(calcMsg, "Reading Estimate PathCosts [%d]", BLOCK_SIZE); loadscreen->SetLoadMessage(calcMsg); - std::auto_ptr auto_pfile(pfile); + std::unique_ptr auto_pfile(pfile); IArchive& file(*pfile); const unsigned fid = file.FindFile("pathinfo");