From 5adcd60667cc7b40a10ffbd14f842a48a892fbd2 Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Mon, 25 Oct 2021 21:48:34 +0200 Subject: [PATCH] Only initialize help once Fixes #3256 --- Source/help.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Source/help.cpp b/Source/help.cpp index 65043a7a3..513e2a3e3 100644 --- a/Source/help.cpp +++ b/Source/help.cpp @@ -100,6 +100,10 @@ std::vector HelpTextLines; void InitHelp() { + static bool Initialized = false; + if (Initialized) + return; + HelpFlag = false; char tempString[1024]; @@ -117,6 +121,8 @@ void InitHelp() previous = next + 1; } } + + Initialized = true; } void DrawHelp(const Surface &out)