SwapBytesForXbox refactor

This commit is contained in:
VaDiM 2023-01-27 13:46:55 +03:00
parent 39490d4e03
commit b9cf95616b

View File

@ -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]);
}
}
}