JuPedSim / jpsreport

Analysis tool
https://www.jupedsim.org/jpsreport_introduction.html
Other
3 stars 9 forks source link

Fix mean velocity calculation #210

Closed schroedtert closed 2 years ago

schroedtert commented 2 years ago

Source of the error: When we accessed the velocity vector we used the ped ID as index, however if the IDs were non continuous, we accessed memory outside of the vector. Using at(i) instead of [i] lead directly to crashes.