From 98b8a2b1f4b0b77ec53ce1591b0c0fe00ab40ed6 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 31 Oct 2018 20:36:23 +0100 Subject: [PATCH] - missed one place where FBrokenLines was used. --- src/c_cmds.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/c_cmds.cpp b/src/c_cmds.cpp index f242c06ebc..18be473e80 100644 --- a/src/c_cmds.cpp +++ b/src/c_cmds.cpp @@ -1196,9 +1196,9 @@ static void PrintSecretString(const char *string, bool thislevel) } auto brok = V_BreakLines(ConFont, screen->GetWidth()*95/100, string); - for (int k = 0; brok[k].Width >= 0; k++) + for (auto &line : brok) { - Printf("%s%s\n", colstr, brok[k].Text.GetChars()); + Printf("%s%s\n", colstr, line.Text.GetChars()); } } }