From b9cf95616b0d0e854a41ae8b1222b9fc8ec4eff4 Mon Sep 17 00:00:00 2001 From: VaDiM Date: Fri, 27 Jan 2023 13:46:55 +0300 Subject: [PATCH] SwapBytesForXbox refactor --- AssetStudioUtility/Texture2DConverter.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/AssetStudioUtility/Texture2DConverter.cs b/AssetStudioUtility/Texture2DConverter.cs index ff7e4b2..47e7d0e 100644 --- a/AssetStudioUtility/Texture2DConverter.cs +++ b/AssetStudioUtility/Texture2DConverter.cs @@ -219,9 +219,7 @@ namespace AssetStudio { for (var i = 0; i < reader.Size / 2; i++) { - var b = image_data[i * 2]; - image_data[i * 2] = image_data[i * 2 + 1]; - image_data[i * 2 + 1] = b; + (image_data[i * 2 + 1], image_data[i * 2]) = (image_data[i * 2], image_data[i * 2 + 1]); } } }