Fix an oversight.

This was SVN commit r17182.
This commit is contained in:
wraitii 2015-11-05 16:52:19 +00:00
parent 071c5317f4
commit 05547bf36f

View File

@ -75,10 +75,10 @@ void CReplayLogger::StartGame(JS::MutableHandleValue attribs)
// Construct the directory name based on the PID, to be relatively unique.
// Append "-1", "-2" etc if we run multiple matches in a single session,
// to avoid accidentally overwriting earlier logs.
std::wstringstream name;
static int run = -1;
do
{
std::wstringstream name;
name << getpid();
if (++run)
name << "-" << run;