Skip to content

Commit

Permalink
Update PPtrUtils.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
Deficuet authored and Deficuet committed Dec 24, 2022
1 parent 93c60fa commit a72adcc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/kotlin/io/github/deficuet/unitykt/PPtrUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ inline fun <reified O: Object> PPtr<O>.getObj(): O? {
return null
}

inline fun <reified T: Object> PPtr<*>.getObjAs(): T? {
return getObj() as? T
inline fun <reified T: Object> PPtr<*>.getObjAs(): T {
return getObj() as T
}

inline fun <reified T: Object> Array<out PPtr<*>>.allObjectsOf(): List<T> {
Expand Down

0 comments on commit a72adcc

Please sign in to comment.