fix: use <= when compareing release types
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
This commit is contained in:
parent
832a61f886
commit
2680dba0aa
5 changed files with 13 additions and 4 deletions
|
@ -144,7 +144,7 @@ auto FlameAPI::getLatestVersion(VersionSearchArgs&& args) -> ModPlatform::Indexe
|
|||
for (auto file : arr) {
|
||||
auto file_obj = Json::requireObject(file);
|
||||
auto file_tmp = FlameMod::loadIndexedPackVersion(file_obj);
|
||||
bool better_release = file_tmp.verison_type < ver_tmp.verison_type;
|
||||
bool better_release = file_tmp.verison_type <= ver_tmp.verison_type;
|
||||
if(file_tmp.date > ver_tmp.date && better_release) {
|
||||
ver_tmp = file_tmp;
|
||||
latest_file_obj = file_obj;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue