mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-07-04 05:55:47 -07:00
Fixes out of bounds access in SkyManager after 0837e369cf.
This was SVN commit r26136.
This commit is contained in:
parent
70bd982c85
commit
b9e4c14083
1 changed files with 1 additions and 1 deletions
|
|
@ -138,7 +138,7 @@ void SkyManager::LoadSkyTextures()
|
|||
|
||||
if (types[i] == GL_TEXTURE_CUBE_MAP_NEGATIVE_Y || types[i] == GL_TEXTURE_CUBE_MAP_POSITIVE_Y)
|
||||
{
|
||||
rotated.reserve(textures[i].m_DataSize);
|
||||
rotated.resize(textures[i].m_DataSize);
|
||||
|
||||
for (size_t y = 0; y < textures[i].m_Height; ++y)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue