Files
fs2open.github.com/code
wookieejedi f20c1bddfd Fix short read error with red alert csg file reading (#6229)
In current master, the debug log commonly shows `CSG => Warning: (0x0011) Short read, information may have been lost!`.

Thanks to Taylor for pointing the following issue out:
The function `pilotfile::csg_read_redalert()` returns if `ship_list_size` is zero, but it still needs to check the `wing_list_size` a bit below that. This has likely not caused data loss issues ATM, because it's reasonable to assume that if `ship_list_size` is zero then so is `wing_list_size`. But it's still a bug and should be fixed before it does cause some real data loss.

This PR moves the relevant read sections to within each respective if-block. That way the function is capable of checking both `ship_list_size` and `wing_list_size` on every load (even if `ship_list_size` is zero).
2024-07-05 12:50:56 -04:00
..
2023-10-31 13:09:03 -04:00
2023-10-20 15:32:46 -04:00
2018-07-15 19:37:24 +02:00
2023-10-24 20:33:45 -04:00
2024-01-29 22:07:37 -05:00
2024-03-25 20:13:16 -04:00
2024-07-01 16:01:31 -04:00
2023-04-26 19:36:16 -04:00
2023-02-19 14:58:17 -06:00
2024-03-25 13:33:21 -04:00
2024-06-21 14:16:43 -05:00
2024-07-03 19:41:21 -04:00
2024-06-21 14:16:43 -05:00
2019-11-03 16:27:23 -05:00
2024-07-01 16:01:31 -04:00
2024-02-05 19:22:32 +01:00
2023-11-08 20:08:37 -05:00