From e65d1587e7694e7aad9790cdab48aa6a226665b1 Mon Sep 17 00:00:00 2001 From: kaetemi Date: Mon, 16 Mar 2020 02:17:21 +0800 Subject: [PATCH] Set fallback value on uninitialized variable --- code/nel/src/gui/ctrl_scroll.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/nel/src/gui/ctrl_scroll.cpp b/code/nel/src/gui/ctrl_scroll.cpp index df45b428f..14caa75f4 100644 --- a/code/nel/src/gui/ctrl_scroll.cpp +++ b/code/nel/src/gui/ctrl_scroll.cpp @@ -1348,6 +1348,7 @@ namespace NLGUI } else { + hs[hsIndex] = Hotspot_Bx; CLuaIHM::fails(ls, "%s : couldn't parse hotspot for vertical scrollbar", funcName); } } @@ -1369,6 +1370,7 @@ namespace NLGUI } else { + hs[hsIndex] = Hotspot_xL; CLuaIHM::fails(ls, "%s : couldn't parse hotspot for horizontal scrollbar", funcName); } }