1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-23 18:07:41 +00:00

savemem:: removed some more potential crashes

This commit is contained in:
Zeno Rogue
2022-07-17 12:42:35 +02:00
parent 7c1d083afa
commit 6225fd38e8
4 changed files with 7 additions and 4 deletions

View File

@@ -2709,6 +2709,7 @@ EX namespace dragon {
total += c->hitpoints;
if(c->mondir == NODIR) return total;
c = c->move(c->mondir);
if(!c) return total;
}
return total;
}
@@ -2737,6 +2738,7 @@ EX namespace dragon {
}
while(c->mondir != NODIR) {
c = c->move(c->mondir);
if(!c) return;
c->stuntime = 2;
}
break;