mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-09-28 14:13:01 -04:00
Fixed null pointer issue with travel terminals when coming from a bad city.
This commit is contained in:
@@ -676,7 +676,7 @@ public class travel extends script.base_script
|
||||
}
|
||||
public static obj_id getStarportFromTerminal(obj_id terminal) throws InterruptedException
|
||||
{
|
||||
if (terminal == null || terminal == obj_id.NULL_ID)
|
||||
if (terminal == null || terminal == obj_id.NULL_ID || !isIdValid(terminal))
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user