Use empty() instead of size()

Thank you @mtm84 for pointing that out, I forgot to check properly.
This commit is contained in:
Revision
2024-10-04 22:23:08 +02:00
parent eee8c96a12
commit 8f1f79a3b1

View File

@@ -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;