Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
HTCheater authored Jan 29, 2023
1 parent d7c7008 commit 138171a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Il2CppExplorer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ function explorer.getField(instance, offset, offsetX32, valueType)
explorer.print("🔴 explorer.getField: offset for this architecture is not specified")
return nil
end
return explorer.readValue(instance.address + offset, type)
return explorer.readValue(instance.address + offset, valueType)
end

-- Edit field value in instance from instances table specified by index
Expand Down Expand Up @@ -325,7 +325,7 @@ function explorer.editField(instance, offset, offsetX32, valueType, value)
local t = {}
t[1] = {}
t[1].address = instance.address + offset
t[1].flags = type
t[1].flags = valueType
t[1].value = value
gg.setValues(t)
end
Expand Down Expand Up @@ -476,7 +476,7 @@ function explorer.readValue(addr, valueType)
local t = {}
t[1] = {}
t[1].address = addr
t[1].flags = type
t[1].flags = valueType

t = gg.getValues(t)

Expand Down

0 comments on commit 138171a

Please sign in to comment.