getRegion pointer check seemed wrong, as result of getRegion was used in case the pointer was nullptr.

meow-7.2.2
Nicky 2022-02-10 10:27:36 +01:00
parent bc41ce2915
commit 05412379fa
1 changed files with 1 additions and 1 deletions

View File

@ -1272,7 +1272,7 @@ void LLVOAvatarSelf::removeMissingBakedTextures()
// <FS:Beq> Check whether the BOM capability is different to last time we changed region (even across login)
void LLVOAvatarSelf::checkBOMRebakeRequired()
{
if(!getRegion())
if(getRegion())
{
auto newBOMStatus = getRegion()->bakesOnMeshEnabled();
if(!gSavedSettings.getBOOL("CurrentlyUsingBakesOnMesh") != newBOMStatus)