Skip to content

Commit

Permalink
fix #15879
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Dec 9, 2024
1 parent 4931914 commit fdfc1fa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/microsim/devices/MSDevice_Battery.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ MSDevice_Battery::buildVehicleDevices(SUMOVehicle& v, std::vector<MSVehicleDevic
// Add device to vehicle
into.push_back(device);

sf->setBattery(device);
if (sf != nullptr) {
sf->setBattery(device);
}
/*
if (sf != nullptr) {
if (device->tracksFuel()) {
Expand Down

0 comments on commit fdfc1fa

Please sign in to comment.