mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-02-02 10:23:47 +00:00
Hotfix for OnBotLoginOperation() Crash (#2089)
Hotfix for an issue arising from https://github.com/mod-playerbots/mod-playerbots/pull/2082 OnBotLoginOperation() is calling OnBotLogin() twice for altbots. I don't know the full implication, but RandomPlayerbotMgr::OnBotLoginInternal() is being called on altbots, and the server will crash if you attempt to then log out the altbot. This fix works for me right now. Discussed with @Celandriel , going to push this hotfix for now until the rest of the maintainers can take a look.
This commit is contained in:
@@ -503,8 +503,10 @@ public:
|
||||
manager->OnBotLogin(bot);
|
||||
}
|
||||
}
|
||||
|
||||
sRandomPlayerbotMgr.OnBotLogin(bot);
|
||||
else
|
||||
{
|
||||
sRandomPlayerbotMgr.OnBotLogin(bot);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user