Verified Commit 96309917 authored by Mohcine Chraibi's avatar Mohcine Chraibi

Merge branch 'develop' of https://github.com/jupedsim/jpscore into develop

parents 3111395e ea1fbaf7
...@@ -1276,13 +1276,10 @@ bool Building::AddGoal(Goal* goal) ...@@ -1276,13 +1276,10 @@ bool Building::AddGoal(Goal* goal)
return true; return true;
} }
bool Building:: bool Building::AddTrainType(std::shared_ptr<TrainType> TT)
AddTrainType(std::shared_ptr<TrainType> TT)
{ {
if (_trainTypes.count(TT->type)!=0) { if (_trainTypes.count(TT->type)!=0) {
Log->Write("WARNING: Duplicate type for train found [%s]",TT->type); Log->Write("WARNING: Duplicate type for train found [%s]",TT->type.c_str());
} }
_trainTypes[TT->type] = TT; _trainTypes[TT->type] = TT;
return true; return true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment