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)
693693 if (!m_memPassed) // if they have < 256 MB, force them to low res textures.
694694 return m_staticGameLODInfo[STATIC_GAME_LOD_LOW].m_textureReduction ;
695695
696+ if (m_idealDetailLevel < 0 || m_idealDetailLevel >= STATIC_GAME_LOD_COUNT)
697+ return m_staticGameLODInfo[STATIC_GAME_LOD_LOW].m_textureReduction ;
698+
696699 return m_staticGameLODInfo[m_idealDetailLevel].m_textureReduction ;
697700}
698701
Original file line number Diff line number Diff line change @@ -698,6 +698,9 @@ Int GameLODManager::getRecommendedTextureReduction(void)
698698 if (!m_memPassed) // if they have < 256 MB, force them to low res textures.
699699 return m_staticGameLODInfo[STATIC_GAME_LOD_LOW].m_textureReduction ;
700700
701+ if (m_idealDetailLevel < 0 || m_idealDetailLevel >= STATIC_GAME_LOD_COUNT)
702+ return m_staticGameLODInfo[STATIC_GAME_LOD_LOW].m_textureReduction ;
703+
701704 return m_staticGameLODInfo[m_idealDetailLevel].m_textureReduction ;
702705}
703706
You can’t perform that action at this time.
0 commit comments