mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-09-10 04:46:08 -04:00
Fix warning in assert - size_t can not be negative
This commit is contained in:
parent
a1b96cb9cc
commit
b717103fe0
@ -240,7 +240,7 @@ int BSAFile::getIndex(const char *str) const
|
|||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
size_t res = it->second;
|
size_t res = it->second;
|
||||||
assert(res >= 0 && res < mFiles.size());
|
assert(res < mFiles.size());
|
||||||
return static_cast<int>(res);
|
return static_cast<int>(res);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user