From cab4f9065341a5798640e5bf11dd8e105fff7840 Mon Sep 17 00:00:00 2001 From: Pranav Date: Thu, 4 Aug 2022 17:49:41 +0200 Subject: [PATCH] Initialize ai.better to nullptr in government constructor Fixes #1178 --- common/government.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/common/government.cpp b/common/government.cpp index d45782b9dd..b245d0bf06 100644 --- a/common/government.cpp +++ b/common/government.cpp @@ -411,6 +411,7 @@ government::government() requirement_vector_init(&reqs); changed_to_times = 0; ruledit_disabled = false; + ai.better = nullptr; } /**