From 8b8200f32ed16032d2e276d5d8334cd1214262c8 Mon Sep 17 00:00:00 2001 From: tmj-fstate Date: Thu, 19 Jan 2017 20:16:00 +0100 Subject: [PATCH] Revert "maintenance compilation fixes" This reverts commit e8af37d241318935f8cb01f5f10be802804a8579. --- Train.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Train.cpp b/Train.cpp index a9d04029..6f9865b9 100644 --- a/Train.cpp +++ b/Train.cpp @@ -357,8 +357,9 @@ PyObject *TTrain::GetTrainState() if (typeid(mvControlled->Hamulec) == typeid(TLSt) || typeid(mvControlled->Hamulec) == typeid(TEStED)) { + TBrake *temp_ham = mvControlled->Hamulec; // TLSt* temp_ham2 = temp_ham; - bPN = ( static_cast( mvControlled->Hamulec.get() )->GetEDBCP() > 0.2 ); + bPN = (static_cast(temp_ham)->GetEDBCP() > 0.2); } else bPN = false;