savemem:: removed some more potential crashes

This commit is contained in:
Zeno Rogue committed 2022-07-17 14:41:57 +02:00
1 parent 7c1d083afa
commit 6225fd38e8
4 files changed
+7 -4

No files matched your search

+1 -1
View File
@@ -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);
}