Fixed issue caused when pet is being setup, but it has no master.

This commit is contained in:
Cekis
2017-01-29 05:32:54 +00:00
parent d54e92399e
commit 8d5807cbfb
+3
View File
@@ -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))
{