1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-20 23:50:27 +00:00

fixed a possible crash due to validating lands in product without underlying space

This commit is contained in:
Zeno Rogue 2021-06-01 18:00:24 +02:00
parent 0c048ea53b
commit 6e4b2c281f

View File

@ -744,7 +744,9 @@ EX land_validity_t& land_validity(eLand l) {
return lv::bad_graphics; return lv::bad_graphics;
if((hybrid::actual_geometry == gRotSpace || geometry == gRotSpace) && l == laDryForest) if((hybrid::actual_geometry == gRotSpace || geometry == gRotSpace) && l == laDryForest)
return lv::hedgehogs; return lv::hedgehogs;
if(hybri) return *PIU(&land_validity(l)); if(hybri && hybrid::underlying && hybrid::underlying_cgip) {
return *PIU(&land_validity(l));
}
} }
#if !CAP_FIELD #if !CAP_FIELD