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
2011-05-02 15:36:44 -04:00
committed by runningnak3d
parent 6f154498e0
commit ba578f6cfe
+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); ownerid, PET_SAVE_AS_CURRENT, PET_SAVE_LAST_STABLE_SLOT);
if (!result) if (!result)
{
m_loading = false;
return false; return false;
}
Field *fields = result->Fetch(); Field *fields = result->Fetch();