From fea3c6e43927f1120be128f81bff7a5013047a39 Mon Sep 17 00:00:00 2001 From: Hirek Date: Sun, 7 Sep 2025 03:28:58 +0200 Subject: [PATCH] Fix python command targeting --- PyInt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PyInt.cpp b/PyInt.cpp index e6e8c18e..f5e60331 100644 --- a/PyInt.cpp +++ b/PyInt.cpp @@ -154,7 +154,7 @@ void render_task::run() { WriteLog("Python: Executing command [" + baseCmd + "] with params: P1=" + std::to_string(p1) + " P2=" + std::to_string(p2) + " Target ID=" + std::to_string(simulation::Train->id())); - simulation::Commands.push(cd, simulation::Train->id()); + simulation::Commands.push(cd, static_cast(command_target::vehicle) | simulation::Train->id()); } else {