1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-24 01:00:25 +00:00

fixed a crash bug when collecting an Orb of Safety via Orb of Water

This commit is contained in:
Zeno Rogue 2020-12-26 17:16:51 +01:00
parent 0f1c8ec102
commit 1f5951dbee

View File

@ -2455,8 +2455,11 @@ EX void livecaves() {
else if(c->land == laLivefjord) {
if(hv > 0 && c->wall == waStrandedBoat) c->wall = waBoat;
if(hv > 0 && c->wall == waNone) {
if(c->item && c->cpdist == 1 && markOrb(itOrbWater))
if(c->item && c->cpdist == 1 && markOrb(itOrbWater)) {
bool saf = c->item == itOrbSafety;
collectItem(c);
if(saf) return;
}
c->wall = waSea;
}
if(hv < 0 && c->wall == waBoat) c->wall = waStrandedBoat;