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:
kadeshar
2025-08-28 18:25:13 +02:00
committed by GitHub
parent 45d046f427
commit 179c34e3a9
2 changed files with 2 additions and 2 deletions

View File

@@ -3244,7 +3244,7 @@ std::vector<uint32> PlayerbotFactory::GetCurrentGemsCount()
void PlayerbotFactory::InitFood()
{
if (!botAI->HasCheat(BotCheatMask::food))
if (botAI && botAI->HasCheat(BotCheatMask::food))
{
return;
}