Loading

Paste #pokdmekqg

  1. Index: src/rail_cmd.cpp
  2. ===================================================================
  3. --- src/rail_cmd.cpp    (revision 27688)
  4. +++ src/rail_cmd.cpp    (working copy)
  5. @@ -68,7 +68,16 @@
  6.  
  7.     uint i = 0;
  8.     for (; i < lengthof(_original_railtypes); i++) _railtypes[i] = _original_railtypes[i];
  9. -   for (; i < lengthof(_railtypes);          i++) _railtypes[i] = RailtypeInfo(); // zero-init
  10. +
  11. +   static const RailtypeInfo empty_railtype = {
  12. +       {0,0,0,0,0,0,0,0,0,0,0,0},
  13. +       {0,0,0,0,0,0,0,0,{}},
  14. +       {0,0,0,0,0,0,0,0},
  15. +       {0,0,0,0,0,0},
  16. +       0, RAILTYPES_NONE, RAILTYPES_NONE, 0, 0, 0, RTFB_NONE, 0, 0, 0, 0, 0,
  17. +       RailTypeLabelList(), 0, 0, RAILTYPES_NONE, RAILTYPES_NONE, 0,
  18. +       {}, {} };
  19. +   for (; i < lengthof(_railtypes);          i++) _railtypes[i] = empty_railtype;
  20.  }
  21.  
  22.  void ResolveRailTypeGUISprites(RailtypeInfo *rti)
  23.  

Comments