We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25b76fd commit 1cd58d7Copy full SHA for 1cd58d7
1 file changed
src/main/kotlin/com/nekiplay/hypixelcry/features/lua/objects/misc/FFILib.kt
@@ -406,6 +406,10 @@ class FFILib : LuaTable() {
406
407
val field = cType.fields?.get(key.tojstring())
408
if (field != null) {
409
+ if (field.type.arraySize > 0) {
410
+ val arrayPtr = peer.share(field.offset.toLong())
411
+ return CData(arrayPtr, field.type, ffi)
412
+ }
413
return getValueAt(peer, field.offset.toLong(), field.type)
414
}
415
0 commit comments