diff --git a/src/core/List.hpp b/src/core/List.hpp index 013cfd23d8..f22825ee1d 100644 --- a/src/core/List.hpp +++ b/src/core/List.hpp @@ -51,10 +51,7 @@ public: void AddRange(std::initializer_list initializerList) { - for (T item : initializerList) - { - this->push_back(item); - } + this->insert(this->end(), initializerList.begin(), initializerList.end()); } void Insert(T item, size_t index)