From 42fc34691d4f3dbdb5713b1a0bb4e90d688db9aa Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Fri, 3 Apr 2020 13:10:08 +0300 Subject: [PATCH] Check for levl typ STONE explicitly ... instead of expecting 0 to be STONE (or unused space in this case) --- src/sp_lev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sp_lev.c b/src/sp_lev.c index a6a5b6599..16f42cdba 100755 --- a/src/sp_lev.c +++ b/src/sp_lev.c @@ -1279,7 +1279,7 @@ boolean vault; ymax = (ROWNO - 1); lev = &levl[x][y]; for (; y <= ymax; y++) { - if (lev++->typ) { + if (lev++->typ != STONE) { if (!vault) { debugpline2("strange area [%d,%d] in check_room.", x, y); }