1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-18 15:37:40 +00:00

fixed a crash setting landscape_div to 0

This commit is contained in:
Zeno Rogue
2024-05-05 15:19:52 +02:00
parent 9aa15f96e1
commit 84666ade8c
2 changed files with 2 additions and 1 deletions

View File

@@ -2921,7 +2921,7 @@ EX void set_land_for_geometry(cell *c) {
return;
}
if(land_structure == lsLandscape) {
if(landscape_div < 0) landscape_div = 1;
if(landscape_div <= 0) landscape_div = 1;
array<int, 3> a;
for(int i=0; i<3; i++) a[i] = getCdata(c, i);
auto& ld = landscape_div;