Added a cell check to OnCellAttach in critter.psc, somehow a critter may not have a cell yet

This commit is contained in:
Eddoursul 2024-02-18 09:06:28 +01:00
parent bca900a356
commit eb34dda08b
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View File

@ -251,7 +251,7 @@ EVENT OnCellAttach()
;~ Trace(self + "OnCellAttach() isDeleted", 2)
elseIf isDisabled()
;~ Trace(self + "OnCellAttach() isDisabled", 2)
else
elseif GetParentCell()
; possibly trigger shorter OnUpdate time in Critter OnCritterGoalFailed()
StopTranslation()
endIf