on-petrify crash should be fixed

This commit is contained in:
Zeno Rogue 2019-11-27 22:42:44 +01:00
parent 0ff27cc5b8
commit aa297504a8
1 changed files with 1 additions and 1 deletions

View File

@ -467,7 +467,7 @@ void celldrawer::setcolors() {
break;
case waDeadTroll2: case waPetrifiedBridge: case waPetrified: {
eMonster m = eMonster(c->wparam);
eMonster m = eMonster((unsigned char)c->wparam);
if(c->wall == waPetrified || c->wall == waPetrifiedBridge)
wcol = gradient(wcol, minf[m].color, 0, .2, 1);
if(c->wall == waPetrified || isTroll(m)) if(!(m == moForestTroll && c->land == laOvergrown))