mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-10-18 09:02:56 -04:00
Added check to make sure pilot was valid when docking with another ship.
This commit is contained in:
Regular → Executable
+3
@@ -1065,6 +1065,9 @@ public class combat_ship extends script.base_script
|
||||
public int OnSpaceUnitUnDocked(obj_id self, obj_id target, boolean dockSuccessful) throws InterruptedException
|
||||
{
|
||||
obj_id objPilot = getPilotId(self);
|
||||
if(!isValidId(objPilot) || !exists(objPilot)){
|
||||
return SCRIPT_CONTINUE;
|
||||
}
|
||||
if (!space_utils.isPlayerControlledShip(self))
|
||||
{
|
||||
return SCRIPT_CONTINUE;
|
||||
|
||||
Reference in New Issue
Block a user