Fix crash with bad `parts[next]` index

develop
kaetemi 3 years ago
parent a227dccbb8
commit 8a7e96f7a6
No known key found for this signature in database
GPG Key ID: 9873C4D40BB479BC

@ -1039,6 +1039,8 @@ namespace NLGUI
// second loop -> false && break
loop = !loop;
if (next < parts.size())
{
val = toLowerAscii(parts[next]);
if (val == "center")
{
@ -1071,6 +1073,7 @@ namespace NLGUI
next++;
}
}
}
} while (loop);
//

Loading…
Cancel
Save