stockpiles: overwrite existing files

develop
Casey Link 2014-11-21 19:17:33 +01:00
parent f1ce575be3
commit 0e8832f05d
1 changed files with 1 additions and 1 deletions

@ -465,7 +465,7 @@ public:
{
mBuffer.Clear();
write();
std::fstream output ( file, std::ios::out | std::ios::binary );
std::fstream output ( file, std::ios::out | std::ios::binary | std::ios::trunc );
return mBuffer.SerializeToOstream ( &output );
}