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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user