dninemfive / wn-9id

WARNO mod implementing the 9th Infantry Division (Motorized).
Other
0 stars 0 forks source link

DivisionUnitRegistry tries to register unit IDs even if the units don't exist #9

Closed dninemfive closed 1 month ago

dninemfive commented 1 month ago

If a unit ID is changed or the unit is removed, the unit ID remains in the unit ID cache. When writing to DeckSerializer.ndf, DivisionUnitRegistry does not check if these keys are units which actually exist, so it registers them anyway, and the build step throws an error since it finds an ID without a corresponding descriptor.

dninemfive commented 1 month ago

It would probably be good to generically remove any items corresponding to values which were not used during runtime, anyway.