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

Fix writing NIF header + small fix in AShapeData

parent 678010dc
No related branches found
No related tags found
No related merge requests found
......@@ -713,7 +713,7 @@ string AShapeData::asString() {
*/
void AShapeData::Write( ofstream& out, unsigned int version ){
WriteUShort( short(vertices.size()), out );
WriteUShort( ushort(vertices.size()), out );
if ( vertices.size() > 0 )
WriteBool( true, out, version );
......
......@@ -346,7 +346,7 @@ void WriteNifTree( string file_name, blk_ref & root_block, unsigned int version
int int_ver[4] = { byte_ver[3], byte_ver[2], byte_ver[1], byte_ver[0] };
header_string << int_ver[3] << "." << int_ver[2] << "." << int_ver[1] << "." << int_ver[0] << " ";
header_string << int_ver[0] << "." << int_ver[1] << "." << int_ver[2] << "." << int_ver[3];
out << header_string.str();
WriteByte( 10, out ); // Unknown Byte = 10
......
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