Loading

Paste #pasxaysto

  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,9 @@
  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 RailtypeInfo empty_railtype;
  12. +   for (; i < lengthof(_railtypes);          i++) _railtypes[i] = empty_railtype;
  13.  }
  14.  
  15.  void ResolveRailTypeGUISprites(RailtypeInfo *rti)
  16.  

Comments