From 67ed04fbf036a4c033ff090f1f444a534a6f3cdf Mon Sep 17 00:00:00 2001
From: Amorilia <amorilia@users.sourceforge.net>
Date: Fri, 21 Sep 2012 19:56:07 +0100
Subject: [PATCH] Remove silly check which prevents niflib from reading various
 block types.

---
 src/niflib.cpp | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/src/niflib.cpp b/src/niflib.cpp
index ec123aec..9cec20f4 100644
--- a/src/niflib.cpp
+++ b/src/niflib.cpp
@@ -307,18 +307,6 @@ vector<NiObjectRef> ReadNifList( istream & in, list<NiObjectRef> & missing_link_
 					break;
 				}
 			}
-
-			if ( (objectType[0] != 'N' || objectType[1] != 'i') && (objectType[0] != 'R' || objectType[1] != 'o') && (objectType[0] != 'A' || objectType[1] != 'v')) {
-				errStream << "Read failue - Bad object position.  Invalid Type Name:  " << objectType << endl;
-				if ( new_obj != NULL ) {
-					errStream << "Last successfuly read object was:  " << endl;
-					errStream << "====[ " << "Object " << i - 1 << " | " << new_obj->GetType().GetTypeName() << " ]====" << endl;
-					errStream << new_obj->asString();
-				} else {
-					errStream << "No objects were read successfully." << endl;
-				}
-				throw runtime_error( errStream.str() );
-			}
 		}
 
 		//Create object of the type that was found
-- 
GitLab