Skip to content

Commit

Permalink
Fix regression (#321)
Browse files Browse the repository at this point in the history
  • Loading branch information
vfsfitvnm committed Jul 3, 2023
1 parent 76604b6 commit e312fc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/il2cpp/structs/method.ts
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ ${this.virtualAddress.isNull() ? `` : ` // 0x${this.relativeVirtualAddress.toStr
switch (property) {
case "invoke":
let instanceHandle = instance.handle;
if (instance.class.isValueType && !Il2Cpp.unityVersionIsBelow202120) {
if (!Il2Cpp.unityVersionIsBelow202120 && instance.class.isValueType && !instance.class.isEnum) {
instanceHandle = instanceHandle.add(Il2Cpp.Object.headerSize);
}

Expand Down

0 comments on commit e312fc2

Please sign in to comment.