Skip to content

Commit

Permalink
Fix reallocating new array for enums on lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
tlf30 committed Sep 16, 2017
1 parent 78cde12 commit 15ba396
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion game/src/plugins/skill/firemaking/src/fireamaking_data.kt
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@ val FIRE_OBJ = 2732
val ASH = 592
val LIGHT_ANIMATION = Animation(733)

fun lookupLog(id: Int): Log? = Log.values().find { it.id == id }
val LOGS = Log.values()

fun lookupLog(id: Int): Log? = LOGS.find { it.id == id }

0 comments on commit 15ba396

Please sign in to comment.