Skip to content

Commit

Permalink
Fix KtConstructor
Browse files Browse the repository at this point in the history
  • Loading branch information
CedNaru committed Oct 16, 2024
1 parent 460e1bd commit 1c07011
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ abstract class KtConstructor<T : KtObject>(

fun construct(rawPtr: VoidPtr, instanceId: Long) = KtObject.createScriptInstance(rawPtr, ObjectID(instanceId)) {
TransferContext.readArguments(parameterTypes, paramsArray)
resetParamsArray()
val instance = invoke()
resetParamsArray()
instance
}

Expand Down

0 comments on commit 1c07011

Please sign in to comment.