feat: fix warning

This commit is contained in:
Yunfan Li
2023-05-24 19:44:53 +08:00
parent c16e587854
commit 429dc03100
7 changed files with 11 additions and 11 deletions

View File

@@ -560,7 +560,7 @@ void AiFactory::AddDefaultNonCombatStrategies(Player* player, PlayerbotAI* const
nonCombatEngine->addStrategy("attack tagged");
nonCombatEngine->addStrategy("pvp");
nonCombatEngine->addStrategy("collision");
// nonCombatEngine->addStrategy("collision");
nonCombatEngine->addStrategy("grind");
// nonCombatEngine->addStrategy("group");
// nonCombatEngine->addStrategy("guild");
@@ -589,7 +589,7 @@ void AiFactory::AddDefaultNonCombatStrategies(Player* player, PlayerbotAI* const
if (masterBotAI || sRandomPlayerbotMgr->IsRandomBot(player))
{
nonCombatEngine->addStrategy("pvp");
nonCombatEngine->addStrategy("collision");
// nonCombatEngine->addStrategy("collision");
nonCombatEngine->addStrategy("grind");
// nonCombatEngine->addStrategy("group");
// nonCombatEngine->addStrategy("guild");

View File

@@ -73,7 +73,7 @@ std::vector<std::string> AiObjectContext::Save()
result.push_back(out.str());
}
return std::move(result);
return result;
}
void AiObjectContext::Load(std::vector<std::string> data)

View File

@@ -545,7 +545,7 @@ std::vector<std::string> Engine::GetStrategies()
result.push_back(i->first);
}
return std::move(result);
return result;
}
void Engine::PushAgain(ActionNode* actionNode, float relevance, Event event)

View File

@@ -228,7 +228,7 @@ class NamedObjectContextList
result.insert(*j);
}
return std::move(result);
return result;
}
std::set<std::string> GetCreated()
@@ -242,7 +242,7 @@ class NamedObjectContextList
result.insert(*j);
}
return std::move(result);
return result;
}
private:

View File

@@ -42,10 +42,10 @@ bool DrinkAction::Execute(Event event)
else
delay = 20000.0f * (100 - p) / 100.0f;
botAI->CastSpell(24707, bot);
botAI->SetNextCheckDelay(delay);
return true;
return botAI->CastSpell(24707, bot);
}
return UseItemAction::Execute(event);

View File

@@ -119,7 +119,7 @@ std::vector<uint32> SuggestWhatToDoAction::GetIncompletedQuests()
result.push_back(questId);
}
return std::move(result);
return result;
}
void SuggestWhatToDoAction::specificQuest()

View File

@@ -15,7 +15,7 @@ GuidVector AttackersValue::Calculate()
GuidVector result;
if (!botAI->AllowActivity(ALL_ACTIVITY))
return std::move(result);
return result;
AddAttackersOf(bot, targets);
@@ -30,7 +30,7 @@ GuidVector AttackersValue::Calculate()
if (bot->duel && bot->duel->Opponent)
result.push_back(bot->duel->Opponent->GetGUID());
return std::move(result);
return result;
}
void AttackersValue::AddAttackersOf(Group* group, std::set<Unit*>& targets)