diff --git a/source/build/src/engine.cpp b/source/build/src/engine.cpp index 220a420dd..c1f325156 100644 --- a/source/build/src/engine.cpp +++ b/source/build/src/engine.cpp @@ -12004,6 +12004,9 @@ void renderSetTarget(int16_t tilenume, int32_t xsiz, int32_t ysiz) { if (setviewcnt >= MAXSETVIEW-1) return; + if (xsiz <= 0 || + ysiz <= 0) + return; //DRAWROOMS TO TILE BACKUP&SET CODE tilesiz[tilenume].x = xsiz; tilesiz[tilenume].y = ysiz;