Fixed issue causing an error when a beast finishes combat and its owner cannot be found.

This commit is contained in:
Cekis
2018-03-23 15:58:09 -07:00
committed by CekisSWG
parent d5b0cfb108
commit cd36566b09
+3 -1
View File
@@ -448,7 +448,9 @@ public class beast extends script.base_script
}
if (isIdValid(master))
{
setHomeLocation(self, getLocation(master));
location masterLoc = getLocation(master);
if(isValidLocation(masterLoc, 1.0f))
setHomeLocation(self, masterLoc);
}
return SCRIPT_CONTINUE;
}