//erode river: fix undefined global variable

This commit is contained in:
Starbeamrainbowlabs 2021-07-30 18:03:39 +01:00
parent bd1da727a4
commit ecb846fcfe
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -47,7 +47,7 @@ function worldeditadditions.erode.river(heightmap_initial, heightmap, heightmap_
local height_up = heightmap[hi]
local height_down = heightmap[hi]
local height_left = heightmap[hi]
local height_down = heightmap[hi]
local height_right = heightmap[hi]
if x > 0 then height_left = heightmap[z*heightmap_size.x + x-1] end
if x < heightmap_size.x - 1 then height_right = heightmap[z*heightmap_size.x + x+1] end