mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
Food cheat fixes (#1594)
* - Fixed bug with InitFood and food cheat - Fixed food cheat description in config * - Fixed bug with initself command
This commit is contained in:
@@ -3244,7 +3244,7 @@ std::vector<uint32> PlayerbotFactory::GetCurrentGemsCount()
|
||||
|
||||
void PlayerbotFactory::InitFood()
|
||||
{
|
||||
if (!botAI->HasCheat(BotCheatMask::food))
|
||||
if (botAI && botAI->HasCheat(BotCheatMask::food))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user