diff --git a/include/nif_versions.h b/include/nif_versions.h index 9777248ab3e8df5c1c0d869a7024fc4bda257222..83996aa4dd512d698daf3a24e13a25bbe75fc9e5 100644 --- a/include/nif_versions.h +++ b/include/nif_versions.h @@ -17,6 +17,7 @@ const unsigned VER_4_2_0_2 = 0x04020002; /*!< NIF Version 4.2.0.2 */ const unsigned VER_4_2_1_0 = 0x04020100; /*!< NIF Version 4.2.1.0 */ const unsigned VER_4_2_2_0 = 0x04020200; /*!< NIF Version 4.2.2.0 */ const unsigned VER_10_0_1_0 = 0x0A000100; /*!< NIF Version 10.0.1.0 */ +const unsigned VER_10_0_1_2 = 0x0A000102; /*!< NIF Version 10.0.1.2 */ const unsigned VER_10_1_0_0 = 0x0A010000; /*!< NIF Version 10.1.0.0 */ const unsigned VER_10_1_0_106 = 0x0A01006A; /*!< NIF Version 10.1.0.106 */ const unsigned VER_10_2_0_0 = 0x0A020000; /*!< NIF Version 10.2.0.0 */ diff --git a/src/gen/obj_impl.cpp b/src/gen/obj_impl.cpp index 8357429b6b4c9040ae7a323dbf561cd42c44dce9..e880b2dcdbce25d9fbc63ace8590e47898339b88 100644 --- a/src/gen/obj_impl.cpp +++ b/src/gen/obj_impl.cpp @@ -214,7 +214,7 @@ Ref<T> FixLink( const map<unsigned,NiObjectRef> & objects, list<unsigned int> & link_stack.pop_front(); //Check if link is NULL - if ( info.version > VER_3_3_0_13) { + if ( info.version >= VER_3_3_0_13) { if ( index == 0xFFFFFFFF) { return NULL; } diff --git a/src/niflib.cpp b/src/niflib.cpp index 8752e249cb37abb11e8f56825b476ca1b3f292db..74ed36d6aa2bb1870b156e2985a5dd7258a4feb2 100644 --- a/src/niflib.cpp +++ b/src/niflib.cpp @@ -998,6 +998,7 @@ bool IsSupportedVersion( unsigned int version ) { case VER_4_2_2_0: case VER_10_0_1_0: case VER_10_1_0_0: + case VER_10_0_1_2: case VER_10_1_0_106: case VER_10_2_0_0: case VER_20_0_0_4: