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

niflib:

* bug fix in Header block (array<3,LineString> crashes gcc when destructed)
parent f4fe4ce0
No related branches found
No related tags found
No related merge requests found
...@@ -31,7 +31,7 @@ struct Header { ...@@ -31,7 +31,7 @@ struct Header {
/*! /*!
* Unknown. * Unknown.
*/ */
array<3,LineString > copyright; vector<LineString > copyright;
/*! /*!
* The NIF version, in hexadecimal notation: 0x04000002, 0x0401000C, * The NIF version, in hexadecimal notation: 0x04000002, 0x0401000C,
* 0x04020002, 0x04020100, 0x04020200, 0x0A000100, 0x0A010000, * 0x04020002, 0x04020100, 0x04020200, 0x0A000100, 0x0A010000,
......
...@@ -5,7 +5,7 @@ All rights reserved. Please see niflib.h for licence. */ ...@@ -5,7 +5,7 @@ All rights reserved. Please see niflib.h for licence. */
using namespace Niflib; using namespace Niflib;
//Constructor //Constructor
Header::Header() : version((unsigned int)0x04000002), endianType((byte)1), userVersion((unsigned int)0), numBlocks((unsigned int)0), userVersion2((unsigned int)0), numBlockTypes((unsigned short)0), unknownInt2((unsigned int)0) {}; Header::Header() : version((unsigned int)0x04000002), endianType((byte)1), userVersion((unsigned int)0), numBlocks((unsigned int)0), userVersion2((unsigned int)0), numBlockTypes((unsigned short)0), unknownInt2((unsigned int)0), copyright(3) {};
//Copy Constructor //Copy Constructor
Header::Header( const Header & src ) { Header::Header( const Header & src ) {
......
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