diff --git a/components/bsa/bsa_file.cpp b/components/bsa/bsa_file.cpp index 158080ea3..3375882f5 100644 --- a/components/bsa/bsa_file.cpp +++ b/components/bsa/bsa_file.cpp @@ -240,7 +240,7 @@ int BSAFile::getIndex(const char *str) const return -1; size_t res = it->second; - assert(res >= 0 && res < mFiles.size()); + assert(res < mFiles.size()); return static_cast(res); }