Debug/release, 32/64-bit (not that 32 is still supported...), and perhaps even different compilers (-> alignments?!) can't always load each other's stuff!
It might as well be the VERY sketchy load (UB)!
[x] Add at least a size check (replacing the old temp. assert) and bail out...
[x] Add a build-time regr. test to compare a saved file to a reference.
[x] Well, the smoke test should already be fine for this, too; it's just gone obsolete and always fails now...
Debug/release, 32/64-bit (not that 32 is still supported...), and perhaps even different compilers (-> alignments?!) can't always load each other's stuff!
It might as well be the VERY sketchy load (UB)!