Fixed IsAttached() Papyrus error spam in critter.psc
This commit is contained in:
parent
f6650e6fd7
commit
68c68c6a3e
Binary file not shown.
@ -1116,13 +1116,17 @@ endFunction
|
|||||||
/;
|
/;
|
||||||
Bool Function CheckCellAttached(ObjectReference AnyItemRef)
|
Bool Function CheckCellAttached(ObjectReference AnyItemRef)
|
||||||
|
|
||||||
Cell parentCell = AnyItemRef.GetParentCell()
|
if AnyItemRef == None || ! AnyItemRef.Is3DLoaded()
|
||||||
|
return false
|
||||||
|
endif
|
||||||
|
|
||||||
|
Cell parentCell = AnyItemRef.GetParentCell() as Cell
|
||||||
|
|
||||||
If parentCell == None
|
If parentCell == None
|
||||||
;~ Trace(Self + "CheckCellAttached() " + AnyItemRef + " GetParentCell == None")
|
;~ Trace(Self + "CheckCellAttached() " + AnyItemRef + " GetParentCell == None")
|
||||||
return False
|
return False
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
Return parentCell.IsAttached()
|
Return parentCell.IsAttached()
|
||||||
|
|
||||||
EndFunction
|
EndFunction
|
||||||
|
Loading…
Reference in New Issue
Block a user