Fix off by one error when loading settings profiles
This commit is contained in:
@@ -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.
|
// We could check vec.at(0), but it's not guaranteed to exist.
|
||||||
auto o = T{};
|
auto o = T{};
|
||||||
auto profileCount = getAmountOfSavedObjects( o );
|
auto profileCount = getAmountOfSavedObjects( o );
|
||||||
for ( int profileNumber = 1; profileNumber < profileCount; ++profileNumber )
|
for ( int profileNumber = 1; profileNumber <= profileCount;
|
||||||
|
++profileNumber )
|
||||||
{
|
{
|
||||||
vec.emplace_back();
|
vec.emplace_back();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user