Commit e24d8c30 authored by Johannes Leins's avatar Johannes Leins
Browse files

NULL measure bug fix and default sub region change for disturbances

parent 99699072
Pipeline #29078 passed with stage
in 51 seconds
This diff is collapsed.
......@@ -240,7 +240,7 @@ void Environment::clearDisturbances() {
bool Environment::addDisturbance(Point coord, unsigned int disturbanceID, unordered_map<int, vector<int>> disturbancesTimingByYear) {
vector<int> timing;
// empty timing vector => no disturbance
Measure* measure;
Measure* measure = NULL;
if(Constants::ID_DISTURBANCE_NONE != disturbanceID && disturbancesTimingByYear.size() > 0) {
if(!disturbancesTimingByYear.empty()) {
bool relativeTiming = false;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment