mirror of
https://bitbucket.org/seefoe/dsrc.git
synced 2026-10-13 03:13:13 -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