diff options
Diffstat (limited to 'StormLib/src/SBaseCommon.cpp')
| -rw-r--r-- | StormLib/src/SBaseCommon.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/StormLib/src/SBaseCommon.cpp b/StormLib/src/SBaseCommon.cpp index 2a424dc04..e8b3ef182 100644 --- a/StormLib/src/SBaseCommon.cpp +++ b/StormLib/src/SBaseCommon.cpp @@ -959,7 +959,7 @@ ULONGLONG FindFreeMpqSpace(TMPQArchive * ha) //static TFileEntry* furthestFile = nullptr; //TFileEntry* startEntry = furthestFile == nullptr ? ha->pFileTable : furthestFile; - + TFileEntry* startEntry = (ha->useFreeSpaceOptimization && ha->lastFreeSpaceEntry != nullptr) ? ha->lastFreeSpaceEntry : ha->pFileTable; // Parse the entire block table |
