From f3ecc4f41bbf373b9deac77a7ea5e2fed84e900e Mon Sep 17 00:00:00 2001 From: kervala Date: Sun, 8 Nov 2015 13:43:31 +0100 Subject: [PATCH] Fixed: If frequency is 0, use the first one in list --- code/ryzom/client/src/misc.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/ryzom/client/src/misc.cpp b/code/ryzom/client/src/misc.cpp index e6b15c2d7..775e9cc41 100644 --- a/code/ryzom/client/src/misc.cpp +++ b/code/ryzom/client/src/misc.cpp @@ -1478,7 +1478,8 @@ bool getRyzomModes(std::vector &videoModes, std::vector 0 && freq == ClientCfg.Frequency) + // if frequency is 0, take the first one else use the exact one + if (nFoundStringFreq == -1 && ((ClientCfg.Frequency == 0) || (freq == ClientCfg.Frequency))) { nFoundStringFreq = stringFreqList.size(); }