Merge pull request #221 from liyunfan1223/fix_script

Fix script crash on exit
This commit is contained in:
Yunfan Li
2024-05-07 23:55:21 +08:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -563,7 +563,7 @@ AiPlayerbot.PremadeSpecLink.5.2.80 = 0503203--325023051223010323152301351
# DeathKnight
AiPlayerbot.PremadeSpecName.6.0 = blood pve
AiPlayerbot.PremadeSpecGlyph.6.0 = 45805,43673,43827,43544,43672,43554
AiPlayerbot.PremadeSpecLink.6.0.60 = 0055021533003313201020131151
AiPlayerbot.PremadeSpecLink.6.0.60 = 035502150300331320102013111-005
AiPlayerbot.PremadeSpecLink.6.0.80 = 0355021533003313201020131351-005-005032
AiPlayerbot.PremadeSpecName.6.1 = frost pve
AiPlayerbot.PremadeSpecGlyph.6.1 = 45805,43673,43547,43544,43672,43543

View File

@@ -201,7 +201,7 @@ class PlayerbotsPlayerScript : public PlayerScript
class PlayerbotsMiscScript : public MiscScript
{
public:
PlayerbotsMiscScript() : MiscScript("PlayerbotsMiscScript") { }
PlayerbotsMiscScript() : MiscScript("PlayerbotsMiscScript", {MISCHOOK_ON_DESTRUCT_PLAYER}) { }
void OnDestructPlayer(Player* player) override
{