diff --git a/code/nel/src/gui/css_style.cpp b/code/nel/src/gui/css_style.cpp index 396bff062..267693e06 100644 --- a/code/nel/src/gui/css_style.cpp +++ b/code/nel/src/gui/css_style.cpp @@ -1028,6 +1028,9 @@ namespace NLGUI // second loop -> false && break loop = !loop; + if (next >= parts.size()) + break; + val = toLower(parts[next]); if (val == "center") {