From 760a1f0163df819d7e7ffbdc5acfc0077d95dcfe Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Sat, 7 Nov 2020 23:37:50 +0000 Subject: [PATCH] Fix assert failure in MarkAllViewportMapsDirty Assertion is incorrect --- src/viewport.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/viewport.cpp b/src/viewport.cpp index 02304b8d48..42ac4e0a40 100644 --- a/src/viewport.cpp +++ b/src/viewport.cpp @@ -3639,7 +3639,6 @@ void MarkAllViewportMapsDirty(int left, int top, int right, int bottom) FOR_ALL_WINDOWS_FROM_BACK(w) { Viewport *vp = w->viewport; if (vp != nullptr && vp->zoom >= ZOOM_LVL_DRAW_MAP) { - assert(vp->width != 0); MarkViewportDirty(vp, left, top, right, bottom, VMDF_NOT_LANDSCAPE); } }