1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-15 00:05:02 +02:00

Fix assert

This commit is contained in:
nordsoft
2023-09-01 04:39:32 +04:00
parent e9ba1d73d1
commit 15037b782f

View File

@ -66,7 +66,7 @@ bool CModVersion::compatible(const CModVersion & other, bool checkMinor, bool ch
if(patch == Any || other.patch == Any)
checkPatch = false;
assert(checkMinor || !checkPatch);
assert(!checkPatch || (checkPatch && checkMinor));
return (major == other.major &&
(!checkMinor || minor >= other.minor) &&