News:

The Forum Rules and Guidelines
Our forum has Rules and Guidelines. Please, be kind and read them ;).

since r7025 - bridge_write.cc vs bridge_reader.cc, file version 0x8009

Started by Bernd Gabriel, February 13, 2014, 06:56:46 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Bernd Gabriel

bridge_write writes new axle_load before max_height:   
    node.write_uint8 (outfp, pillar_asymmetric, 19);
    node.write_uint16(outfp, axle_load,         20);
    node.write_uint8 (outfp, max_height,        22);

but bridge_read reads ift after max_height:
        besch->pillars_asymmetric = (decode_uint8(p)!=0);
        besch->max_height = decode_uint8(p);
        besch->axle_load = decode_uint16(p);    // new
The journey is the reward!

kierongreen

Changed read to:

      besch->pillars_asymmetric = (decode_uint8(p)!=0);
      besch->axle_load = decode_uint16(p);   // new
      besch->max_height = decode_uint8(p);

Many thanks for spotting this!