mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-29 19:40:35 +00:00
Fix crash when an unknown princess is in peril
This commit is contained in:
parent
8f8cbfd4c7
commit
42f8f5f4cc
@ -512,8 +512,8 @@ EX void killMonster(cell *c, eMonster who, flagtype deathflags IS(0)) {
|
|||||||
|
|
||||||
if(m == moPrincess) {
|
if(m == moPrincess) {
|
||||||
princess::info *i = princess::getPrincessInfo(c);
|
princess::info *i = princess::getPrincessInfo(c);
|
||||||
changes.value_keep(*i);
|
|
||||||
if(i) {
|
if(i) {
|
||||||
|
changes.value_keep(*i);
|
||||||
i->princess = NULL;
|
i->princess = NULL;
|
||||||
if(i->bestdist == OUT_OF_PALACE) {
|
if(i->bestdist == OUT_OF_PALACE) {
|
||||||
items[itSavedPrincess]--;
|
items[itSavedPrincess]--;
|
||||||
|
Loading…
Reference in New Issue
Block a user