Skip to content

Commit

Permalink
Fixed the same problem in GNEContainers. Refs #12
Browse files Browse the repository at this point in the history
  • Loading branch information
palvarezlopez committed Aug 19, 2024
1 parent 581767e commit 35fdbec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/netedit/elements/demand/GNEContainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ GNEContainer::getMoveOperation() {
// check first container plan
if (getChildDemandElements().front()->getTagProperty().isPlanStopContainer()) {
return nullptr;
} else {
} else if (getChildDemandElements().front()->getParentEdges().size() > 0) {
// get lane
const GNELane* lane = getChildDemandElements().front()->getParentEdges().front()->getLaneByAllowedVClass(getVClass());
// declare departPos
Expand All @@ -197,6 +197,8 @@ GNEContainer::getMoveOperation() {
}
// return move operation
return new GNEMoveOperation(this, lane, posOverLane, false);
} else {
return nullptr;
}
}

Expand Down

0 comments on commit 35fdbec

Please sign in to comment.