diff --git a/RageLib.GTA5/Resources/PC/Meta/MetaUtils.cs b/RageLib.GTA5/Resources/PC/Meta/MetaUtils.cs index 8f50abb2..acd516de 100644 --- a/RageLib.GTA5/Resources/PC/Meta/MetaUtils.cs +++ b/RageLib.GTA5/Resources/PC/Meta/MetaUtils.cs @@ -158,6 +158,7 @@ public static T[] ConvertDataArray(MetaFile meta, uint pointer, uint count) w int byteoffset = (int)ptrOffset; int itemoffset = byteoffset / itemSize; + int mod = byteoffset % itemSize; int c = 0; @@ -172,7 +173,7 @@ public static T[] ConvertDataArray(MetaFile meta, uint pointer, uint count) w for (int i = 0; i < itemcount; i++) { - int offset = (itemoffset + i) * itemSize; + int offset = (itemoffset + i) * itemSize + (mod % 4); int index = c + i; items[index] = ConvertData(ptrblock, offset); }