From a72adcc9156340dbd13669d0fcf4b812dec25453 Mon Sep 17 00:00:00 2001 From: Deficuet Date: Fri, 23 Dec 2022 22:00:19 -0700 Subject: [PATCH] Update PPtrUtils.kt --- src/main/kotlin/io/github/deficuet/unitykt/PPtrUtils.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {