From f9fdd526d50a5e09e640cc4c3cc37b4288900da2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Sun, 6 Feb 2022 12:54:11 +0100 Subject: [PATCH] fix portal_occlusion_culler compilation with target=debug tools=no --- servers/visual/portals/portal_occlusion_culler.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/servers/visual/portals/portal_occlusion_culler.cpp b/servers/visual/portals/portal_occlusion_culler.cpp index 9ab212698b7..16f61ffd822 100644 --- a/servers/visual/portals/portal_occlusion_culler.cpp +++ b/servers/visual/portals/portal_occlusion_culler.cpp @@ -606,8 +606,10 @@ void PortalOcclusionCuller::whittle_polys() { // yes .. we can remove this poly .. but do not muck up the iteration of the list //print_line("poly is occluded " + itos(t)); +#ifdef TOOLS_ENABLED // this condition should never happen, we should never be checking occludee against itself DEV_ASSERT(_polys[t].poly_source_id != _polys[n].poly_source_id); +#endif // unordered remove _polys[t] = _polys[_num_polys - 1];