Skip to content

Commit

Permalink
Fix a regression that broke phrase replacements
Browse files Browse the repository at this point in the history
A wrong check was introduced when PhraseReplacementMap was refactored,
and therefore it broke phrase replacement for v2.7 users. This fixes it.
  • Loading branch information
lukhnos committed Mar 28, 2024
1 parent 602846a commit 7b9423e
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions Source/Engine/PhraseReplacementMap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,6 @@ void PhraseReplacementMap::close() {
}

bool PhraseReplacementMap::load(const char* data, size_t length) {
if (mmapedFile_.data() != nullptr) {
// Cannot load while mmapedFile_ is already open.
return false;
}

if (data == nullptr || length == 0) {
return false;
}
Expand Down

0 comments on commit 7b9423e

Please sign in to comment.