mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-20 18:10:02 +01:00
Use empty() instead of size()
Thank you @mtm84 for pointing that out, I forgot to check properly.
This commit is contained in:
parent
eee8c96a12
commit
8f1f79a3b1
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user