failsafe on the failsafe for cargo dismounting (carrier needs to exist, if not a vehicle)

This commit is contained in:
Fate-JH 2026-05-03 16:22:34 -04:00
parent fadd735b9f
commit 8eea4511b8

View file

@ -61,8 +61,10 @@ trait CargoBehavior {
def startCargoDismounting(bailed: Boolean): Unit = {
if (!startCargoDismountingNoCleanup(bailed)) {
isDismounting = None
CargoObject.MountedIn = None
CargoObject.Zone.GUID(CargoObject.MountedIn).orElse {
isDismounting = None
CargoObject.MountedIn = None
}
}
}