mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-15 00:05:02 +02:00
Fix assert
This commit is contained in:
@ -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) &&
|
||||
|
Reference in New Issue
Block a user