mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-31 19:29:18 +00:00
fixed a crash on buggy items
This commit is contained in:
parent
eedc976b20
commit
069d09d2b0
@ -205,6 +205,15 @@ EX bool collectItem(cell *c2, bool telekinesis IS(false)) {
|
||||
dopickup = false;
|
||||
}
|
||||
else if(c2->item == itBuggy || c2->item == itBuggy2) {
|
||||
|
||||
if(changes.on) {
|
||||
if(changes.checking) {
|
||||
changes.rollback();
|
||||
return true;
|
||||
}
|
||||
changes.commit();
|
||||
}
|
||||
|
||||
items[itOrbSafety] += 7;
|
||||
if(shmup::on)
|
||||
shmup::delayed_safety = true;
|
||||
|
Loading…
Reference in New Issue
Block a user