From 0bf9b1bfe643e3adc3f137fcc8c391cb49f8d7fb Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Tue, 29 Dec 2020 05:36:06 +0100 Subject: [PATCH] Fix mpqapi_get_hash_index --- Source/mpqapi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/mpqapi.cpp b/Source/mpqapi.cpp index 0d97a07bc..0cffb34a8 100644 --- a/Source/mpqapi.cpp +++ b/Source/mpqapi.cpp @@ -265,7 +265,7 @@ static int mpqapi_get_hash_index(int index, int hash_a, int hash_b, int locale) continue; if (sgpHashTbl[idx].lcid != locale) continue; - if (sgpHashTbl[idx].block != -2) + if (sgpHashTbl[idx].block == -2) continue; return idx;