Skip to content

Commit e3ba550

Browse files
authored
make variables local
1 parent 47e53a5 commit e3ba550

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Il2CppExplorer.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ end
7676
--Check wether the metadata class name pointer is suitable to find instances. Returns boolean.
7777

7878
function ht.isClassPointer(address)
79-
t = {}
79+
local t = {}
8080
t[1] = {}
8181
t[1].address = address - (isx64 and 0x10 or 0x8)
8282
t[1].flags = isx64 and gg.TYPE_QWORD or gg.TYPE_DWORD
@@ -401,13 +401,13 @@ function ht.editFunction(className, functionName, patchedBytes, patchedBytesX32)
401401

402402
addr = addr - ht.libStart
403403

404-
ht.print("Offset for " .. functionName .. ": " .. addr)
404+
ht.print("Offset for " .. functionName .. ": " .. string.format('%X', addr))
405405

406406
ht.patchLib(addr, addr, patchedBytes, patchedBytesX32)
407407
end
408408

409409
function ht.isFunctionPointer(address, className)
410-
t = {}
410+
local t = {}
411411
t[1] = {}
412412
t[1].address = address - (isx64 and 0x10 or 0x8)
413413
t[1].flags = isx64 and gg.TYPE_QWORD or gg.TYPE_DWORD

0 commit comments

Comments
 (0)