1
1
forked from 0ad/0ad

Fixes terrain index type (causing a warning) introduced in 1e1ce27eba.

This was SVN commit r23807.
This commit is contained in:
Vladislav Belov 2020-07-07 16:51:20 +00:00
parent a7da40ac2f
commit 365dbd91fc

View File

@ -649,7 +649,7 @@ void CTerrain::ResizeAndOffset(ssize_t size, ssize_t horizontalOffset, ssize_t v
// Now build new patches. The same process as for the heightmap.
for (ssize_t j = 0; j < depth; ++j)
{
for (size_t i = 0; i < width; ++i)
for (ssize_t i = 0; i < width; ++i)
{
const CPatch& src =
m_Patches[(sourceUpperLeftZ + j) * m_MapSizePatches + sourceUpperLeftX + i];