diff --git a/nml/actions/action0.py b/nml/actions/action0.py index 8e84a8ac..63e981c6 100644 --- a/nml/actions/action0.py +++ b/nml/actions/action0.py @@ -1214,5 +1214,5 @@ def get_layout_action0(feature, id, layouts): def get_copy_layout_action0(feature, id, source_id): act0, offset = create_action0(feature, id, None, None) act0.num_ids = 1 - act0.prop_list.append(Action0Property(0x0A, source_id, 1)) + act0.prop_list.append(Action0Property(0x0A, source_id, 1 if source_id.value < 0xFF else 3)) return [act0] diff --git a/regression/expected/040_station.grf b/regression/expected/040_station.grf index 5d21c8a2..90a46827 100644 Binary files a/regression/expected/040_station.grf and b/regression/expected/040_station.grf differ diff --git a/regression/expected/040_station.nfo b/regression/expected/040_station.nfo index 17c9b1cd..b13c071a 100644 --- a/regression/expected/040_station.nfo +++ b/regression/expected/040_station.nfo @@ -187,8 +187,8 @@ FF \wx00F9 // @action3_3; 1D \wxDC00 1C \wxDC01 -31 * 9 00 04 \b1 01 FF \wx0100 -0A FF +31 * 11 00 04 \b1 01 FF \wx0100 +0A FF \wx00FF // Name: @CB_FAILED_REAL04 32 * 7 02 04 F8 \b0 \b1