mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-09-12 23:45:12 -04:00
Fixed issue causing an error when a beast finishes combat and its owner cannot be found.
This commit is contained in:
Regular → Executable
+3
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user