Skip to content

Commit 0f2f8a2

Browse files
committed
Fix Mod Version Compatibility Check
1 parent 485d897 commit 0f2f8a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/shared/shared_version.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ namespace semver
4646
if (constraint.GetMajorVersion() != version.GetMajorVersion())
4747
return false;
4848

49-
if (constraint.GetMajorVersion() > version.GetMajorVersion())
49+
if (constraint.GetMinorVersion() > version.GetMinorVersion())
5050
return false;
5151

52-
if (constraint.GetMajorVersion() < version.GetMajorVersion())
52+
if (constraint.GetMinorVersion() < version.GetMinorVersion())
5353
return true;
5454

5555
if (constraint.GetPatchVersion() > version.GetPatchVersion())

0 commit comments

Comments
 (0)