Fix a bit of incorrect copy-paste

in commit https://github.com/aelurum/AssetStudio/commit/e216abd6be06ba7f718cb5213eb6d850b4002ac7
This commit is contained in:
VaDiM
2023-09-08 23:47:26 +03:00
parent 2e10e627b0
commit a4cdff5934
+2 -2
View File
@@ -91,7 +91,7 @@ namespace AssetStudio
}
if (version[0] > 2019 || (version[0] == 2019 && version[1] >= 3)) //2019.3 and up
{
if (version[0] >= 2022 && version[1] >= 2) //2022.2 and up
if (version[0] > 2022 || (version[0] == 2022 && version[1] >= 2)) //2022.2 and up
{
var m_IgnoreMipmapLimit = reader.ReadBoolean();
}
@@ -107,7 +107,7 @@ namespace AssetStudio
var m_ReadAllowed = reader.ReadBoolean();
}
}
if (version[0] == 2022 && version[1] >= 2) //2022.2 and up
if (version[0] > 2022 || (version[0] == 2022 && version[1] >= 2)) //2022.2 and up
{
var m_MipmapLimitGroupName = reader.ReadAlignedString();
reader.AlignStream();