mirror of
https://github.com/LukeFZ/Il2CppInspectorRedux.git
synced 2026-03-22 00:18:18 +05:00
Fix typeindex size calculation using the wrong max size
This commit is contained in:
@@ -135,7 +135,7 @@ namespace Il2CppInspector
|
||||
// thankfully, we can just guess the size based off the three available options and the known total size of
|
||||
// a type entry that uses TypeIndex.
|
||||
var actualSize = Header.InterfaceOffsets.SectionSize / Header.InterfaceOffsets.Count;
|
||||
var maxSize = Il2CppEventDefinition.Size(tempVersion);
|
||||
var maxSize = Il2CppInterfaceOffsetPair.Size(tempVersion);
|
||||
|
||||
int typeIndexSize;
|
||||
if (actualSize == maxSize)
|
||||
@@ -437,3 +437,4 @@ namespace Il2CppInspector
|
||||
public int Sizeof<T>() where T : IReadable => T.Size(Version, Is32Bit);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user