diff --git a/src/main/java/club/joylink/rtss/simulation/cbtc/data/storage/plan/StorageCtcRunPlanLog.java b/src/main/java/club/joylink/rtss/simulation/cbtc/data/storage/plan/StorageCtcRunPlanLog.java index 56feb8e8f..c075294ba 100644 --- a/src/main/java/club/joylink/rtss/simulation/cbtc/data/storage/plan/StorageCtcRunPlanLog.java +++ b/src/main/java/club/joylink/rtss/simulation/cbtc/data/storage/plan/StorageCtcRunPlanLog.java @@ -53,7 +53,7 @@ public class StorageCtcRunPlanLog { ctcRunPlanParam.setElectrical(runPlanLog.isElectrical()); } ctcRunPlanParam.setTransfinite(runPlanLog.getTransfinite()); - if (runPlanLog.getPassenger().equals(CtcStationRunPlanLog.PlanPropertiesType.PASSENGER)) { + if (CtcStationRunPlanLog.PlanPropertiesType.PASSENGER.equals(runPlanLog.getPassenger())) { ctcRunPlanParam.setPassenger(true); } ctcRunPlanParam.setKeyTrains(runPlanLog.getKeyTrains());