From f65f210149ecdbd107880f24a5f1ad228dd476f1 Mon Sep 17 00:00:00 2001 From: Jan-Peter Nilsson Date: Sat, 5 Mar 2011 00:43:47 +0100 Subject: [PATCH] An unsigned integer can not be smaller than 0 so there's no point in checking --- components/esm/esm_reader.hpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/components/esm/esm_reader.hpp b/components/esm/esm_reader.hpp index 927c3b085..8f4fafd88 100644 --- a/components/esm/esm_reader.hpp +++ b/components/esm/esm_reader.hpp @@ -490,10 +490,6 @@ public: // Adjust number of record bytes left mCtx.leftRec -= mCtx.leftSub + 4; - - // Check that sizes added up - if(mCtx.leftRec < 0) - fail("Not enough bytes left in record for this subrecord."); } /** Get sub header and check the size