Maintenance at Wednesday, 30. June 2021, from 8:15 to 9:15
Some of the planned changes may require user action

Commit 130fe748 authored by Ozaq's avatar Ozaq
Browse files

Fix clang 8 build

Building::AddTrainType was calling
void OutputHandler::Write(const char* message,...) with a non-trivial
type std::string. See clang doc for this diagnstic:
parent 6798f0e4
......@@ -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