diff options
Diffstat (limited to 'src/SFileAddFile.cpp')
-rw-r--r-- | src/SFileAddFile.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/SFileAddFile.cpp b/src/SFileAddFile.cpp index 040ed57..f941141 100644 --- a/src/SFileAddFile.cpp +++ b/src/SFileAddFile.cpp @@ -434,6 +434,11 @@ int SFileAddFile_Init( // If the caller didn't set MPQ_FILE_REPLACEEXISTING, fail it if((dwFlags & MPQ_FILE_REPLACEEXISTING) == 0) nError = ERROR_ALREADY_EXISTS; + + // When replacing an existing file, + // we still need to invalidate the (attributes) file + if(nError == ERROR_SUCCESS) + InvalidateInternalFiles(ha); } } |