Check for levl typ STONE explicitly

... instead of expecting 0 to be STONE (or unused space in this case)
This commit is contained in:
Pasi Kallinen
2020-04-03 13:10:08 +03:00
parent a2338e92aa
commit 42fc34691d

View File

@@ -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);
}