From e791f6dfb2465082c473b5bb5fb14bd5dcc614c0 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) --- 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; + } } } }