Fix witchspace entry error for assassins

This commit is contained in:
cim 2013-12-01 12:36:32 +00:00
parent 1ba485275d
commit 91ff0c6647

View File

@ -5669,7 +5669,7 @@ PriorityAIController.prototype.responseComponent_scooping_shipScoopedFuel = func
PriorityAIController.prototype.responseComponent_trackPlayer_playerWillEnterWitchspace = function()
{
var wormhole = this.getParameter("oolite_witchspaceWormhole");
if (wormhole != null)
if (wormhole != null && wormhole.isWormhole)
{
this.ship.enterWormhole(wormhole);
}