Core/Pets: Prevent loading of non-existent saved pet data on pet first summon. This should fix problems of pets being summoned and non-responsive.

This commit is contained in:
tobmaps authored and runningnak3d committed 2011-05-02 15:36:44 -04:00
1 parent 6f154498e0
commit ba578f6cfe
1 file changed
+3
+3
View File
@@ -133,7 +133,10 @@ bool Pet::LoadPetFromDB(Player* owner, uint32 petentry, uint32 petnumber, bool c
ownerid, PET_SAVE_AS_CURRENT, PET_SAVE_LAST_STABLE_SLOT);
if (!result)
{
m_loading = false;
return false;
}
Field *fields = result->Fetch();