mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-06 11:45:35 +00:00
An unsigned integer can not be smaller than 0 so there's no point in checking
This commit is contained in:
parent
d68141d203
commit
f65f210149
1 changed files with 0 additions and 4 deletions
|
@ -490,10 +490,6 @@ public:
|
||||||
|
|
||||||
// Adjust number of record bytes left
|
// Adjust number of record bytes left
|
||||||
mCtx.leftRec -= mCtx.leftSub + 4;
|
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
|
/** Get sub header and check the size
|
||||||
|
|
Loading…
Reference in a new issue