mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-14 02:27:40 -04:00
Fix optimization in FindPage() that might attempt to use a plPageInfo class
before checking it is valid.
This commit is contained in:
@ -1621,7 +1621,7 @@ void plResManager::UnloadPageObjects(plRegistryPageNode* pageNode, UInt16 classI
|
||||
plRegistryPageNode* plResManager::FindPage(const plLocation& location) const
|
||||
{
|
||||
// Quick optimization
|
||||
if (fLastFoundPage != nil && fLastFoundPage->GetPageInfo().GetLocation() == location)
|
||||
if (fLastFoundPage != nil && fLastFoundPage->IsValid() && fLastFoundPage->GetPageInfo().GetLocation() == location)
|
||||
return fLastFoundPage;
|
||||
|
||||
PageSet::const_iterator it;
|
||||
|
Reference in New Issue
Block a user