Fix off by one error when loading settings profiles

This commit is contained in:
Vasily
2020-03-17 19:39:03 +01:00
committed by username223
parent 97066e453c
commit a74b63f199
+2 -1
View File
@@ -129,7 +129,8 @@ template <class T> void loadAllObjects( std::vector<T>& vec )
// We could check vec.at(0), but it's not guaranteed to exist.
auto o = T{};
auto profileCount = getAmountOfSavedObjects( o );
for ( int profileNumber = 1; profileNumber < profileCount; ++profileNumber )
for ( int profileNumber = 1; profileNumber <= profileCount;
++profileNumber )
{
vec.emplace_back();