Fixed an issue with random event NPCs not terminating properly sometimes

This commit is contained in:
ceikry 2021-07-29 11:38:19 -05:00
parent 43943368c1
commit 95ed2ca1fe

View file

@ -73,9 +73,9 @@ abstract class RandomEventNPC(id: Int) : NPC(id) {
}
override fun init() {
initialized = true
spawnLocation ?: terminate()
location = spawnLocation
initialized = true
super.init()
}