Fix segfault when chameleon form fails on the Rogue level

This commit is contained in:
Pasi Kallinen
2015-10-20 17:28:16 +03:00
parent 3986546325
commit 581b1830ff

View File

@@ -3084,7 +3084,7 @@ boolean msg; /* "The oldmon turns into a newmon!" */
/* for the first several tries we require upper-case on
the rogue level (after that, we take whatever we get) */
if (tryct > 15 && Is_rogue_level(&u.uz)
&& !isupper((uchar) mdat->mlet))
&& mdat && !isupper((uchar) mdat->mlet))
mdat = 0;
if (mdat)
break;