File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
GeneralsMD/Code/GameEngine/Source/Common
Generals/Code/GameEngine/Source/Common Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -693,6 +693,9 @@ Int GameLODManager::getRecommendedTextureReduction(void)
693
693
if (!m_memPassed) // if they have < 256 MB, force them to low res textures.
694
694
return m_staticGameLODInfo[STATIC_GAME_LOD_LOW].m_textureReduction ;
695
695
696
+ if (m_idealDetailLevel < 0 || m_idealDetailLevel >= STATIC_GAME_LOD_COUNT)
697
+ return m_staticGameLODInfo[STATIC_GAME_LOD_LOW].m_textureReduction ;
698
+
696
699
return m_staticGameLODInfo[m_idealDetailLevel].m_textureReduction ;
697
700
}
698
701
Original file line number Diff line number Diff line change @@ -698,6 +698,9 @@ Int GameLODManager::getRecommendedTextureReduction(void)
698
698
if (!m_memPassed) // if they have < 256 MB, force them to low res textures.
699
699
return m_staticGameLODInfo[STATIC_GAME_LOD_LOW].m_textureReduction ;
700
700
701
+ if (m_idealDetailLevel < 0 || m_idealDetailLevel >= STATIC_GAME_LOD_COUNT)
702
+ return m_staticGameLODInfo[STATIC_GAME_LOD_LOW].m_textureReduction ;
703
+
701
704
return m_staticGameLODInfo[m_idealDetailLevel].m_textureReduction ;
702
705
}
703
706
You can’t perform that action at this time.
0 commit comments