Forums WoW Modding Support Archives TrinityCore Discord Archives [DiscordArchive] why do u need those lines exactly for?

[DiscordArchive] why do u need those lines exactly for?

[DiscordArchive] why do u need those lines exactly for?

rektbyfaith
Administrator
0
06-11-2021, 08:08 PM
#1
Archived author: M'Dic • Posted: 2021-06-11T20:08:12.199000+00:00
Original source

why do u need those lines exactly for?
rektbyfaith
06-11-2021, 08:08 PM #1

Archived author: M'Dic • Posted: 2021-06-11T20:08:12.199000+00:00
Original source

why do u need those lines exactly for?

rektbyfaith
Administrator
0
06-11-2021, 08:09 PM
#2
Archived author: M'Dic • Posted: 2021-06-11T20:09:07.834000+00:00
Original source

your following lines seems to do exactly that
```pet->UpdateAllStats();

player->SetMinion(pet, true);

pet->SavePetToDB(PET_SAVE_AS_CURRENT);
pet->InitTalentForLevel();
player->PetSpellInitialize();```
Or am i wrong on that matter?
rektbyfaith
06-11-2021, 08:09 PM #2

Archived author: M'Dic • Posted: 2021-06-11T20:09:07.834000+00:00
Original source

your following lines seems to do exactly that
```pet->UpdateAllStats();

player->SetMinion(pet, true);

pet->SavePetToDB(PET_SAVE_AS_CURRENT);
pet->InitTalentForLevel();
player->PetSpellInitialize();```
Or am i wrong on that matter?

rektbyfaith
Administrator
0
06-11-2021, 08:09 PM
#3
Archived author: M'Dic • Posted: 2021-06-11T20:09:20.820000+00:00
Original source

that could be the issue of your crash
rektbyfaith
06-11-2021, 08:09 PM #3

Archived author: M'Dic • Posted: 2021-06-11T20:09:20.820000+00:00
Original source

that could be the issue of your crash

Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)