diff --git a/include/personStorage.h b/include/personStorage.h index 2b1286a88ea4d63a457949b9c5bebe33ff58f189..4ebcf8d8aac57c311f5ab197c17cd23a78bff6e4 100644 --- a/include/personStorage.h +++ b/include/personStorage.h @@ -123,7 +123,7 @@ public: // rueckgabewert false wenn keine hoeheninformationen in tracker datensatz vorliegt bool printHeightDistribution(); void setMarkerHeights(const std::unordered_map<int, float> &heights); - void setMarkerID(int person, int markerIDs, bool manual = false); + void setMarkerID(int personIndex, int markerIDs, bool manual = false); void setMarkerIDs(const std::unordered_map<int, int> &markerIDs); void purge(int frame); diff --git a/src/personStorage.cpp b/src/personStorage.cpp index fa08541d8d3c1fc11a4e6f21c6902889ea788f0c..0ec16fd247b8678897d8f27d591314c4fe83b65e 100644 --- a/src/personStorage.cpp +++ b/src/personStorage.cpp @@ -1107,16 +1107,16 @@ void PersonStorage::setMarkerHeights(const std::unordered_map<int, float> &heigh /** * Sets/Overwrites the markerID for a specific person and all trackpaints belonging to that person - * @param personID internal id of persons (0 based) + * @param personIndex internal id of persons (0 based) * @param markerIDs new marker ID */ -void PersonStorage::setMarkerID(int personID, int markerID, bool manual) +void PersonStorage::setMarkerID(int personIndex, int markerID, bool manual) { if(manual) { mAutosave.trackPersonModified(); } - auto &person = mPersons.at(personID); + auto &person = mPersons.at(personIndex); person.setMarkerID(markerID); for(auto &trackPoint : person) // over TrackPoints { @@ -1138,7 +1138,7 @@ void PersonStorage::setMarkerIDs(const std::unordered_map<int, int> &markerIDs) if(markerIDs.find(personID) != std::end(markerIDs)) { int markerID = markerIDs.at(personID); - setMarkerID(personID, markerID); + setMarkerID(i, markerID); } else {