mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-30 17:03:48 +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);
|
LOG_ERROR("playerbots", "No races available for class: {}", cls);
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
|||||||
Reference in New Issue
Block a user