diff options
-rw-r--r-- | src/strings.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/strings.cpp b/src/strings.cpp index c3916dcf7..3f35c5c8f 100644 --- a/src/strings.cpp +++ b/src/strings.cpp @@ -1765,8 +1765,8 @@ bool ReadLanguagePack(const LanguageMetadata *lang) for (uint i = 0; i < TAB_COUNT; i++) { uint16 num = lang_pack->offsets[i]; if (num > TAB_SIZE) { - free(lang_pack); - return false; + free(lang_pack); + return false; } _langtab_start[i] = count; |