Fixed critter.psc to not rely on precached variable
This commit is contained in:
parent
a1295a6d03
commit
0769eeba5c
Binary file not shown.
@ -1136,22 +1136,17 @@ endFunction
|
||||
/;
|
||||
Bool Function CheckCellAttached(ObjectReference AnyItemRef)
|
||||
|
||||
return bAttached && AnyItemRef
|
||||
|
||||
;/
|
||||
if ! bAttached || ! AnyItemRef
|
||||
if ! AnyItemRef
|
||||
return false
|
||||
endif
|
||||
|
||||
Cell parentCell = AnyItemRef.GetParentCell() as Cell
|
||||
|
||||
If parentCell == None
|
||||
;~ Trace(Self + "CheckCellAttached() " + AnyItemRef + " GetParentCell == None")
|
||||
return False
|
||||
EndIf
|
||||
|
||||
|
||||
Return parentCell.IsAttached()
|
||||
/;
|
||||
|
||||
EndFunction
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user