WOW: fix patch comparison in version_is_at_or_above()

As reported by Coverity in CID 1484784
This commit is contained in:
Pascal Quantin 2021-05-13 20:15:47 +02:00
parent ffb0723fb3
commit 40a988533f
1 changed files with 2 additions and 2 deletions

View File

@ -197,8 +197,8 @@ version_is_at_or_above(int major, int minor, int patch)
return FALSE;
}
// Both major and minor versions are equal
if (client_game_version.minor_version > patch) {
if (client_game_version.patch_version > patch) {
return TRUE;
}
else if (client_game_version.patch_version < patch) {