diff --git a/src/main/kotlin/io/github/deficuet/unitykt/PPtrUtils.kt b/src/main/kotlin/io/github/deficuet/unitykt/PPtrUtils.kt index b5ad8428..ef7150ee 100644 --- a/src/main/kotlin/io/github/deficuet/unitykt/PPtrUtils.kt +++ b/src/main/kotlin/io/github/deficuet/unitykt/PPtrUtils.kt @@ -19,8 +19,8 @@ inline fun PPtr.getObj(): O? { return null } -inline fun PPtr<*>.getObjAs(): T? { - return getObj() as? T +inline fun PPtr<*>.getObjAs(): T { + return getObj() as T } inline fun Array>.allObjectsOf(): List {