Core: Do not use STL container size method to check if container is empty
This commit is contained in:
@@ -776,7 +776,7 @@ public:
|
||||
target_list.push_back(pTarget);
|
||||
pTarget = NULL;
|
||||
}
|
||||
if (target_list.size())
|
||||
if (!target_list.empty())
|
||||
pTarget = *(target_list.begin()+rand()%target_list.size());
|
||||
|
||||
me->InterruptNonMeleeSpells(false);
|
||||
|
||||
Reference in New Issue
Block a user