diff --git a/sources/Parser/ParserYaml.cpp b/sources/Parser/ParserYaml.cpp index 9aed6df4..b3a6ce82 100644 --- a/sources/Parser/ParserYaml.cpp +++ b/sources/Parser/ParserYaml.cpp @@ -128,10 +128,8 @@ namespace BBM { std::ofstream playerFile(player); std::ofstream bonusFile(bonus); auto &ret = scene->view, TimerComponent>(); + _block << "timer: " << ret.front().get().ringIn.count(); - for (auto &[myEntity, tag, timerComponent] : ret) { - _block << "timer: " << timerComponent.ringIn.count(); - } _player << "players:"; _bonus << "bonuses:"; _block << std::endl << "width: " << std::to_string(Runner::mapWidth);