Fixes out of bounds access in SkyManager after 0837e369cf.

This was SVN commit r26136.
This commit is contained in:
vladislavbelov 2021-12-28 10:50:42 +00:00
parent 70bd982c85
commit b9e4c14083

View file

@ -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)
{