From 94b7148d446eae84004308d07f68b8cdd0f5b758 Mon Sep 17 00:00:00 2001 From: kervala Date: Thu, 5 Nov 2015 17:26:45 +0100 Subject: [PATCH] Fixed: Wrong index for video modes comparison (nFoundMode was an index in strings not CMode list, now renamed to nFoundStringMode) --HG-- branch : develop --- code/ryzom/client/src/misc.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/code/ryzom/client/src/misc.cpp b/code/ryzom/client/src/misc.cpp index 0deb4b518..fd58729e6 100644 --- a/code/ryzom/client/src/misc.cpp +++ b/code/ryzom/client/src/misc.cpp @@ -1430,15 +1430,19 @@ bool getRyzomModes(std::vector &videoModes, std::vector= videoModes[nFoundMode].Width) && (videoModes[i].Height >= videoModes[nFoundMode].Height)) - nFoundMode = j; + { + nFoundStringMode = j; + nFoundMode = i; + } } } }