Steve Cotton 0035b776d7
Handle empty children in patch_movetype (#5582)
In movetype::write, the children might not be created if that child has an
empty config; there might be no child at all for movetypes such as "none". The
movetype "none" is a real movetype defined in units.cfg for units that
shouldn't be able to move.

The original_cfg local variable was only used once anyway, removing it and the
comment made the code clearer.

This wasn't caught in the 1.15 testing, but with 1.14 it resulted in a
"mandatory WML child missing" warning.
2021-03-03 02:57:01 -05:00
..
2021-01-23 18:26:48 +11:00
2021-01-22 14:11:18 +11:00
2021-02-14 02:07:12 +11:00
2020-07-30 13:17:22 -05:00
2021-02-27 20:20:48 -05:00
2021-01-23 21:08:00 +11:00
2021-02-21 13:22:30 -05:00
2020-12-04 15:30:46 +11:00
2020-10-06 13:30:18 +11:00
2020-10-06 13:30:18 +11:00
2020-12-31 23:59:28 -06:00
2021-01-23 23:46:20 +11:00
2020-12-05 22:03:01 +11:00
2020-12-31 23:59:28 -06:00
2021-01-28 03:56:14 +11:00
2021-01-28 12:29:43 +11:00
2021-01-23 21:38:02 +11:00
2019-08-15 01:39:45 +11:00
2021-01-23 21:08:00 +11:00
2021-01-23 23:46:20 +11:00
2020-12-05 22:03:01 +11:00
2020-04-01 21:45:12 +02:00
2021-01-23 21:38:02 +11:00
2021-01-17 11:48:16 +11:00
2021-01-23 18:26:48 +11:00
2019-10-19 18:44:04 +11:00
2021-01-23 21:08:00 +11:00
2019-07-22 15:35:55 +11:00
2021-01-23 23:46:20 +11:00
2021-01-23 21:08:00 +11:00
2019-08-27 13:41:01 +10:00
2020-12-07 03:01:58 +11:00
2021-01-29 14:03:15 +11:00
2020-12-04 15:30:46 +11:00
2020-12-31 23:59:28 -06:00
2020-12-31 23:59:28 -06:00
2021-01-29 14:03:15 +11:00
2020-12-04 11:45:16 +11:00
2020-12-31 23:59:28 -06:00
2021-01-23 23:46:20 +11:00
2021-01-04 06:53:02 +11:00
2020-06-29 15:16:05 +02:00
2020-12-31 23:59:28 -06:00
2021-01-18 09:43:59 +11:00
2021-02-20 18:02:48 -06:00
2021-02-28 11:53:56 -05:00
2020-12-31 23:59:28 -06:00