mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-14 02:27:40 -04:00
Fix assertion with incorrect limit on age sequence prefix.
This commit is contained in:
@ -316,7 +316,7 @@ plLocation plAgeDescription::CalcPageLocation( const char *page ) const
|
||||
{
|
||||
// Combine our sequence # together
|
||||
Int32 combined;
|
||||
hsAssert(abs(fSeqPrefix) < 0xFF, "Age sequence prefex is out of range!"); // sequence prefix can NOT be larger or equal to 1-byte max value
|
||||
hsAssert(abs(fSeqPrefix) < 0x7FFF, "Age sequence prefex is out of range!"); // sequence prefix can NOT be larger or equal to 2-byte max value
|
||||
UInt32 suffix = ap->GetSeqSuffix();
|
||||
hsAssert(suffix <= 0xFFFF, "Page sequence number is out of range!"); // page sequence number can NOT be larger then 2-byte max value
|
||||
if( fSeqPrefix < 0 ) // we are a global age
|
||||
@ -562,4 +562,4 @@ bool plAgeDescription::FindLocation(const plLocation& loc) const
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user