mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-09-10 22:36:02 +00:00
savemem:: removed some more potential crashes
This commit is contained in:
@@ -454,7 +454,7 @@ EX void killMutantIvy(cell *c, eMonster who) {
|
||||
changes.ccell(c);
|
||||
removeIvy(c);
|
||||
for(int i=0; i<c->type; i++)
|
||||
if(c->move(i)->mondir == c->c.spin(i) && (isMutantIvy(c->move(i)) || c->move(i)->monst == moFriendlyIvy))
|
||||
if(c->move(i) && c->move(i)->mondir == c->c.spin(i) && (isMutantIvy(c->move(i)) || c->move(i)->monst == moFriendlyIvy))
|
||||
kills[c->move(i)->monst]++, killMutantIvy(c->move(i), who);
|
||||
if(c->land == laClearing) clearing::imput(c);
|
||||
}
|
||||
|
Reference in New Issue
Block a user