Skip to content

Commit

Permalink
🐛 TuneupFileFormat: added missing reset() & clone() entries.
Browse files Browse the repository at this point in the history
  • Loading branch information
ohlidalp committed Mar 9, 2025
1 parent 0596dd1 commit 9d78fec
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions source/main/resources/tuneup_fileformat/TuneupFileFormat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,15 @@ TuneupDefPtr TuneupDef::clone()
ret->protected_nodes = this->protected_nodes;
ret->node_tweaks = this->node_tweaks;

// flares
ret->protected_flares = this->protected_flares;

// exhausts
ret->protected_exhausts = this->protected_exhausts;

// managed materials
ret->protected_managedmats = this->protected_managedmats;

return ret;
}

Expand Down Expand Up @@ -102,6 +111,14 @@ void TuneupDef::reset()
this->protected_nodes.clear();
this->node_tweaks.clear();

// flares
this->protected_flares.clear();

// exhausts
this->protected_exhausts.clear();

// managed materials
this->protected_managedmats.clear();
}

bool TuneupDef::isWheelSideForced(WheelID_t wheelid, WheelSide& out_val) const
Expand Down

0 comments on commit 9d78fec

Please sign in to comment.