18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-12-01 03:37:09 +01:00

fix: the derailment notice builds on the layout of #531: physics/derailment.h, TDynamicObject::physics

This commit is contained in:
jerrrrycho
2026-11-29 15:57:26 +01:00
parent c1d1f1aead
commit efde2157eb
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -11,7 +11,7 @@ http://mozilla.org/MPL/2.0/.
#include "simulation/simulationtest.h"
#include "application/application.h"
#include "McZapkie/derailment.h"
#include "physics/derailment.h"
#include "scene/scene.h"
#include "simulation/simulation.h"
#include "utilities/Globals.h"
@@ -210,7 +210,7 @@ bool test_manager::tested(TDynamicObject const &Vehicle) const
return true;
return std::ranges::any_of(Global.test.vehicles, [&Vehicle](std::string const &Name) {
auto *vehicle { simulation::Vehicles.find(Name) };
return vehicle != nullptr && vehicle->find_vehicle(coupling::coupler, [&Vehicle](TDynamicObject const *Other) { return Other == &Vehicle; }) != nullptr;
return vehicle != nullptr && vehicle->find_vehicle(Coupling::coupler, [&Vehicle](TDynamicObject const *Other) { return Other == &Vehicle; }) != nullptr;
});
}