From 9459a21083ba29e878fbf8ea8a9fa41c9ca1bde4 Mon Sep 17 00:00:00 2001 From: maj00r Date: Sun, 4 Oct 2026 18:21:08 +0200 Subject: [PATCH] Count the depot consist after writing it back, not before The stats were read off the trainset before the edit was written into it, so the vehicle count and the rest lagged one change behind. --- StarterNG/Views/Depot.axaml.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/StarterNG/Views/Depot.axaml.cs b/StarterNG/Views/Depot.axaml.cs index 0a73015..88be57d 100644 --- a/StarterNG/Views/Depot.axaml.cs +++ b/StarterNG/Views/Depot.axaml.cs @@ -224,9 +224,10 @@ public partial class Depot : UserControl (_consist.SelectedCar is null || !moved.Cars.Contains(_consist.SelectedCar))) _cards.Activate(moved); + // The stats are read off the trainset, so it is written back first. + WriteBackToScenery(); _details.Refresh(); UpdateTrainStats(); - WriteBackToScenery(); // The cards are thrown away and rebuilt on every change, so a keyboard-driven // edit has to be handed its card back or focus escapes the strip.