From 3e39da3c05d1535ca2cdf4a58ab09004ff6e8698 Mon Sep 17 00:00:00 2001 From: Shon Ferguson <shonferg@users.sourceforge.net> Date: Mon, 7 May 2007 21:10:30 +0000 Subject: [PATCH] Fixed one more bug that allows 3.3.0.13 files to work again. Added 10.0.1.2 to the list of "supported" versions. --- include/nif_versions.h | 1 + src/gen/obj_impl.cpp | 2 +- src/niflib.cpp | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/include/nif_versions.h b/include/nif_versions.h index 9777248a..83996aa4 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 8357429b..e880b2dc 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 8752e249..74ed36d6 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: -- GitLab