Use for loop instead
This commit is contained in:
parent
f1e853f339
commit
2e68e73758
@ -231,14 +231,12 @@ void CreateMove()
|
||||
{
|
||||
if (gc_queue.size() && gc_timer.test_and_set(3000))
|
||||
{
|
||||
int i = 0;
|
||||
while (gc_queue.size() && i < 10)
|
||||
for (int i = 0; i < 10 && gc_queue.size(); i++)
|
||||
{
|
||||
queue_struct item = gc_queue.at(gc_queue.size() - 1);
|
||||
auto invmng = re::CTFInventoryManager::GTFInventoryManager();
|
||||
invmng->EquipItemInLoadout(item.clazz, item.slot, item.uuid);
|
||||
gc_queue.pop_back();
|
||||
i++;
|
||||
}
|
||||
}
|
||||
if (!hat_troll)
|
||||
|
Reference in New Issue
Block a user