Skip to content

Commit 063c2fc

Browse files
committed
Fixes to ProcessAction calls after previous changes
(cherry picked from commit 8e99eed)
1 parent 90ea599 commit 063c2fc

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

projects/biogears/libBiogears/include/biogears/cdm/scenario/SEPatientActionCollection.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ BG_EXT template class BIOGEARS_API map<const biogears::SESubstanceCompound*, bio
6969
}
7070

7171
namespace biogears {
72-
72+
class PhysiologyEngine;
7373

7474
//!
7575
//! This is an emergency fix for working with UE4

projects/biogears/libBiogears/src/cdm/scenario/SEActionManager.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,16 +72,16 @@ bool SEActionManager::ProcessAction(const SEAction& action, const PhysiologyEngi
7272
m_ProcessedActions.push_back(action.Unload());
7373

7474
if (dynamic_cast<const SEPatientAction*>(&action) != nullptr)
75-
return m_PatientActions.ProcessAction(dynamic_cast<const CDM::PatientActionData&>(*aData, engine));
75+
return m_PatientActions.ProcessAction(dynamic_cast<const CDM::PatientActionData&>(*aData), engine);
7676

7777
if (dynamic_cast<const SEAnesthesiaMachineAction*>(&action) != nullptr)
78-
return m_AnesthesiaMachineActions.ProcessAction(dynamic_cast<const CDM::AnesthesiaMachineActionData&>(*aData, engine));
78+
return m_AnesthesiaMachineActions.ProcessAction(dynamic_cast<const CDM::AnesthesiaMachineActionData&>(*aData), engine);
7979

8080
if (dynamic_cast<const SEEnvironmentAction*>(&action) != nullptr)
81-
return m_EnvironmentActions.ProcessAction(dynamic_cast<const CDM::EnvironmentActionData&>(*aData, engine));
81+
return m_EnvironmentActions.ProcessAction(dynamic_cast<const CDM::EnvironmentActionData&>(*aData), engine);
8282

8383
if (dynamic_cast<const SEInhalerAction*>(&action) != nullptr)
84-
return m_InhalerActions.ProcessAction(dynamic_cast<const CDM::InhalerActionData&>(*aData, engine));
84+
return m_InhalerActions.ProcessAction(dynamic_cast<const CDM::InhalerActionData&>(*aData), engine);
8585

8686
/// \error Unsupported Action
8787
Error("Unsupported Action");

projects/biogears/libBiogears/src/engine/Controller/BioGearsEngine.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -935,7 +935,7 @@ bool BioGearsEngine::ProcessAction(const SEAction& action)
935935
return true;
936936
}
937937

938-
return GetActions().ProcessAction(action);
938+
return GetActions().ProcessAction(action, *this);
939939
}
940940
//-------------------------------------------------------------------------------
941941
bool BioGearsEngine::IsReady()

0 commit comments

Comments
 (0)