1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-01-15 03:35:47 +00:00

fixed a crash with Grail

This commit is contained in:
Zeno Rogue 2024-12-01 12:44:29 +01:00
parent 1b61d7dc22
commit fda1f26fbd

View File

@ -260,8 +260,10 @@ EX bool collectItem(cell *c2, cell *last, bool telekinesis IS(false)) {
items[itOrbSpeed] += v;
items[itHolyGrail]++;
addMessage(XLAT("Congratulations! You have found the Holy Grail!"));
if(!eubinary) changes.value_keep(c2->master->alt->emeraldval);
if(!eubinary) c2->master->alt->emeraldval |= GRAIL_FOUND;
if(!eubinary && c2->master->alt) {
changes.value_keep(c2->master->alt->emeraldval);
c2->master->alt->emeraldval |= GRAIL_FOUND;
}
achievement_collection(c2->item);
}
else if(c2->item == itKey) {