From a4cdff59340b24046aad907731629ed450651b30 Mon Sep 17 00:00:00 2001 From: VaDiM Date: Fri, 8 Sep 2023 23:41:19 +0300 Subject: [PATCH] Fix a bit of incorrect copy-paste in commit https://github.com/aelurum/AssetStudio/commit/e216abd6be06ba7f718cb5213eb6d850b4002ac7 --- AssetStudio/Classes/Texture2D.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AssetStudio/Classes/Texture2D.cs b/AssetStudio/Classes/Texture2D.cs index f65e5f1..d9cadfb 100644 --- a/AssetStudio/Classes/Texture2D.cs +++ b/AssetStudio/Classes/Texture2D.cs @@ -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();