Fixed issue where instrument location was set, but it was not correct.

This commit is contained in:
Cekis
2018-03-23 16:01:21 -07:00
committed by CekisSWG
parent c08b122d93
commit 32bbb4d81c
@@ -160,7 +160,7 @@ public class instrument extends script.base_script
if (utils.hasScriptVar(self, "instrument.loc"))
{
location where = getLocationObjVar(self, "instrument.loc");
if (!where.equals(getLocation(self)))
if (where == null || !where.equals(getLocation(self)))
{
if (hasObjVar(self, "instrument.owner"))
{