mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-07-21 05:44:06 +00:00
Merge pull request #3090 from akortunov/warnfix
Fix warning in assert - size_t can not be negative
This commit is contained in:
commit
fef9e91510
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue