Bug in read_dump image flags (and patch)

I noticed a bug in the way that read_dump writes image flags (regardless of whether or not the dump contains new ones). There were two problems:
1) The xbox and zbox flags were reversed.
2) Image flags should be stored with an offset equal to IMGMAX. This didn't happen.

Both of the above points can be verified with comparison to the image flag read code earlier in this file (or e.g. in group.cpp, atom.cpp, etc).

I have attached a patch for read_dump.cpp

Tom Coles

Space Propulsion Lab, MIT

readDump.patch (986 Bytes)

yes - good catches - I'll post a patch