fixed a crash on buggy items

This commit is contained in:
Zeno Rogue 2020-03-01 02:59:33 +01:00
parent eedc976b20
commit 069d09d2b0
1 changed files with 9 additions and 0 deletions

View File

@ -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;