mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-28 21:21:30 +00:00
[Cleanup] Remove unnecessary spell_list validation check in botspellsai.cpp (#3244)
# Notes - We check if valid above, no need to do it again.
This commit is contained in:
parent
da2296d416
commit
90984c3215
@ -3050,23 +3050,16 @@ bool Bot::AI_AddBotSpells(uint32 bot_spell_id) {
|
||||
GetLevel()
|
||||
);
|
||||
|
||||
if (spell_list) {
|
||||
debug_msg.append(
|
||||
fmt::format(
|
||||
" (found, {})",
|
||||
spell_list->entries.size()
|
||||
)
|
||||
);
|
||||
debug_msg.append(
|
||||
fmt::format(
|
||||
" (found, {})",
|
||||
spell_list->entries.size()
|
||||
)
|
||||
);
|
||||
|
||||
LogAI("[{}]", debug_msg);
|
||||
for (const auto &iter : spell_list->entries) {
|
||||
LogAIDetail("([{}]) [{}]", iter.spellid, spells[iter.spellid].name);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
debug_msg.append(" (not found)");
|
||||
LogAI("[{}]", debug_msg);
|
||||
LogAI("[{}]", debug_msg);
|
||||
for (const auto &iter: spell_list->entries) {
|
||||
LogAIDetail("([{}]) [{}]", iter.spellid, spells[iter.spellid].name);
|
||||
}
|
||||
|
||||
LogAI("fin (spell list)");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user