Skip to content
Snippets Groups Projects
Commit 1d5b8c0d authored by Amorilia's avatar Amorilia
Browse files

Forgot part from previous commit... Also corrected writing of NULL references.

parent 7f4457b0
No related branches found
No related tags found
No related merge requests found
...@@ -23,7 +23,10 @@ void Footer::Read( istream& in, list<uint> & link_stack, unsigned int version, u ...@@ -23,7 +23,10 @@ void Footer::Read( istream& in, list<uint> & link_stack, unsigned int version, u
void Footer::Write( ostream& out, map<NiObjectRef,uint> link_map, unsigned int version, unsigned int user_version ) const { void Footer::Write( ostream& out, map<NiObjectRef,uint> link_map, unsigned int version, unsigned int user_version ) const {
NifStream( numRoots, out, version ); NifStream( numRoots, out, version );
for (uint i1 = 0; i1 < roots.size(); i1++) { for (uint i1 = 0; i1 < roots.size(); i1++) {
NifStream( link_map[StaticCast<NiObject>(roots[i1])], out, version ); if ( roots[i1] != NULL )
NifStream( link_map[StaticCast<NiObject>(roots[i1])], out, version );
else
NifStream( 0xffffffff, out, version );
}; };
} }
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment