From 646453e45181ecc271ca81dec8daa63c48560d2a Mon Sep 17 00:00:00 2001 From: comicfans44 Date: Sun, 3 Jul 2016 16:17:08 -0400 Subject: [PATCH] avoid assert when 640x480 resolution not found --- Sources/SeriousSam/Menu.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Sources/SeriousSam/Menu.cpp b/Sources/SeriousSam/Menu.cpp index a2f992dea..0a23218da 100644 --- a/Sources/SeriousSam/Menu.cpp +++ b/Sources/SeriousSam/Menu.cpp @@ -1926,10 +1926,8 @@ static void SizeToResolution(PIX pixSizeI, PIX pixSizeJ, INDEX &iRes) return; } } - // if still none found - ASSERT(FALSE); // this should never happen - // return first one - iRes = 0; + // return last one (lowest resolution) + iRes = _ctResolutions-1; }