Unverified Commit 80851780 authored by Mohcine Chraibi's avatar Mohcine Chraibi Committed by GitHub

Merge pull request #410 from Ozaq/fix_clang8_build

Fix clang 8 build
parents 6798f0e4 130fe748
......@@ -1275,13 +1275,10 @@ bool Building::AddGoal(Goal* goal)
return true;
}
bool Building::
AddTrainType(std::shared_ptr<TrainType> TT)
bool Building::AddTrainType(std::shared_ptr<TrainType> TT)
{
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;
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