Skip to content

Commit

Permalink
Merge pull request liyunfan1223#221 from liyunfan1223/fix_script
Browse files Browse the repository at this point in the history
Fix script crash on exit
  • Loading branch information
liyunfan1223 authored May 7, 2024
2 parents cddd3d8 + 9dda8fa commit f475b94
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion conf/playerbots.conf.dist
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/Playerbots.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit f475b94

Please sign in to comment.