From a4d16a2713eb3af09783337c7852161df0c2ef7c Mon Sep 17 00:00:00 2001 From: Learath Lea Date: Sun, 8 Mar 2015 19:45:37 +0200 Subject: [PATCH] Fix bug with replacing executables. --- src/engine/client/autoupdate.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/engine/client/autoupdate.cpp b/src/engine/client/autoupdate.cpp index dbb432c01..b0c352981 100644 --- a/src/engine/client/autoupdate.cpp +++ b/src/engine/client/autoupdate.cpp @@ -104,6 +104,7 @@ void CAutoUpdate::ReplaceExecutable() dbg_msg("autoupdate", "Replacing" PLAT_CLIENT_EXEC); //Replace running executable by renaming twice... + m_pStorage->RemoveFile("DDNet.old", 2); m_pStorage->RenameFile(PLAT_CLIENT_EXEC, "DDNet.old", 2); m_pStorage->RenameFile("DDNet.tmp", PLAT_CLIENT_EXEC, 2); }