mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-13 09:07:19 +00:00
Use empty() instead of size()
Thank you @mtm84 for pointing that out, I forgot to check properly.
This commit is contained in:
@@ -166,7 +166,7 @@ Player* RandomPlayerbotFactory::CreateRandomBot(WorldSession* session, uint8 cls
|
||||
}
|
||||
}
|
||||
|
||||
if (raceOptions.size() == 0)
|
||||
if (raceOptions.empty())
|
||||
{
|
||||
LOG_ERROR("playerbots", "No races available for class: {}", cls);
|
||||
return nullptr;
|
||||
|
||||
Reference in New Issue
Block a user