mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-21 10:38:20 +00:00
[Bug Fix] Fix empty InsertMany in bot starting items. (#3653)
Not checking if the vector is empty before it inserts still inserts when there’s nothing.
This commit is contained in:
+3
-1
@@ -8773,7 +8773,9 @@ void Bot::AddBotStartingItems(uint16 race_id, uint8 class_id)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
BotInventoriesRepository::InsertMany(content_db, v);
|
if (!v.empty()) {
|
||||||
|
BotInventoriesRepository::InsertMany(content_db, v);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
uint8 Bot::spell_casting_chances[SPELL_TYPE_COUNT][PLAYER_CLASS_COUNT][EQ::constants::STANCE_TYPE_COUNT][cntHSND] = { 0 };
|
uint8 Bot::spell_casting_chances[SPELL_TYPE_COUNT][PLAYER_CLASS_COUNT][EQ::constants::STANCE_TYPE_COUNT][cntHSND] = { 0 };
|
||||||
|
|||||||
Reference in New Issue
Block a user