Skip to content

Commit

Permalink
using comma as filename separator. refs #14403
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Feb 24, 2024
1 parent 066373b commit 23f13f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/guisim/GUIVehicle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ GUIVehicle::drawAction_drawCarriageClass(const GUIVisualizationSettings& s, bool
std::string imgFile = getVType().getImgFile();
if (asImage && i != trainHelper.getFirstCarriageNo()) {
if (getVType().getParameter().hasParameter("carriageImages")) {
std::vector<std::string> imgFiles = StringTokenizer(getVType().getParameter().getParameter("carriageImages", "")).getVector();
std::vector<std::string> imgFiles = StringTokenizer(getVType().getParameter().getParameter("carriageImages", ""), ",").getVector();
if (imgFiles.size() > 0) {
const int carIndex = trainHelper.isReversed() ? numCarriages - i : i;
imgFile = imgFiles[MIN2((int)imgFiles.size() - 1, carIndex - 1)];
Expand Down

0 comments on commit 23f13f4

Please sign in to comment.