[Scripts] Fix crash on exit

This commit is contained in:
Yunfan Li
2024-05-07 23:49:52 +08:00
parent a7a2662e19
commit 9dda8fa88f

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
{