mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-09-11 22:45:06 -04:00
Fixed issue caused when pet is being setup, but it has no master.
This commit is contained in:
Regular → Executable
+3
@@ -747,6 +747,9 @@ public class pet extends script.base_script
|
||||
}
|
||||
public int handleSetupPet(obj_id self, dictionary params) throws InterruptedException
|
||||
{
|
||||
if(!pet_lib.hasMaster(self)){
|
||||
return SCRIPT_CONTINUE;
|
||||
}
|
||||
LOGC(aiLoggingEnabled(self), "debug_ai", "pet::handleSetupPet() self(" + self + ":" + getName(self) + ") master(" + getMaster(self) + ":" + getName(getMaster(self)) + ")");
|
||||
if (!isMob(self))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user