Skip to content

Commit

Permalink
fix #15956
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Dec 29, 2024
1 parent 94e8d92 commit ae85ae0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/guisim/GUIParkingArea.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include <gui/GUIGlobals.h>
#include <guisim/GUIParkingArea.h>
#include <guisim/GUIVehicle.h>
#include <mesogui/GUIMEVehicle.h>
#include <microsim/MSEdge.h>
#include <microsim/MSLane.h>
#include <microsim/MSNet.h>
Expand Down Expand Up @@ -192,7 +193,11 @@ GUIParkingArea::drawGL(const GUIVisualizationSettings& s) const {
// draw parking vehicles (their lane might not be within drawing range. if it is, they are drawn twice)
myLane.getVehiclesSecure();
for (const MSBaseVehicle* const v : myLane.getParkingVehicles()) {
static_cast<const GUIVehicle*>(v)->drawGL(s);
if (MSGlobals::gUseMesoSim) {
static_cast<const GUIMEVehicle*>(v)->drawGL(s);
} else {
static_cast<const GUIVehicle*>(v)->drawGL(s);
}
}
myLane.releaseVehicles();
}
Expand Down

0 comments on commit ae85ae0

Please sign in to comment.