Thanks to Chris' changes to remove line number information, I can now
cleanly debug what goes wrong when in savegame.c.
These members of "foo" are uninitialized when the game is attempting to be
saved. This results in uninitialized data being read and then written to
the savegame file: sound_object, port_flags, type, type->content.value,
foo->content.branches[0], foo->content.branches[1],
In:
for (i = 0; i < min; i++) {
write_PTN(fh, &(foo->parser_nodes[i]));
fprintf(fh, "\n");
}
foo->parser_nodes[i] is uninitialized at various places, first instance
is when i=500.
THis probably doesn't help a whole lot on it's own -- if someone would
like to walk me through debugging this, it would be greatly appreciated.
--
http://www.clock.org/~matt