From e4fd6ee03f74391f3625df640481434c64916081 Mon Sep 17 00:00:00 2001 From: Rachael Alexanderson Date: Sat, 21 Jul 2018 21:51:37 -0400 Subject: [PATCH] - the error checking on the previous commit should've been done slightly differently --- src/r_videoscale.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/r_videoscale.cpp b/src/r_videoscale.cpp index f073b1ec73..13043c210b 100644 --- a/src/r_videoscale.cpp +++ b/src/r_videoscale.cpp @@ -28,7 +28,6 @@ #define NUMSCALEMODES 6 -EXTERN_CVAR(Int, vid_scalemode) EXTERN_CVAR(Int, vid_aspect) CVAR(Int, vid_scale_customwidth, 0, CVAR_ARCHIVE | CVAR_GLOBALCONFIG) CVAR(Int, vid_scale_customheight, 0, CVAR_ARCHIVE | CVAR_GLOBALCONFIG) @@ -58,7 +57,7 @@ namespace }; bool isOutOfBounds(int x) { - if (vScaleTable[vid_scalemode].isCustom) + if (vScaleTable[x].isCustom) return ((vid_scale_customwidth < 80) || (vid_scale_customheight < 50)); return (x < 0 || x >= NUMSCALEMODES || vScaleTable[x].isValid == false); }