mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-28 10:39:42 +00:00
Fix get vertex Height for esm4
This commit is contained in:
parent
ff9e04062d
commit
9f9a6c06e0
1 changed files with 4 additions and 3 deletions
|
@ -125,9 +125,10 @@ namespace ESMTerrain
|
|||
|
||||
float getVertexHeight(const ESM::LandData* data, int x, int y)
|
||||
{
|
||||
assert(x < ESM::Land::LAND_SIZE);
|
||||
assert(y < ESM::Land::LAND_SIZE);
|
||||
return data->getHeights()[y * ESM::Land::LAND_SIZE + x];
|
||||
const int landSize = data->getLandSize();
|
||||
assert(x < landSize);
|
||||
assert(y < landSize);
|
||||
return data->getHeights()[y * landSize + x];
|
||||
}
|
||||
|
||||
private:
|
||||
|
|
Loading…
Reference in a new issue