1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-27 00:19:09 +00:00

Fix #11889: ConstructWindow not called from SurveyResultTextfileWindow constructor (#11903)

This commit is contained in:
Jonathan G Rennison
2024-01-27 19:44:10 +00:00
committed by GitHub
parent 250cf4f153
commit 1df7b21ee3

View File

@@ -2568,6 +2568,8 @@ struct SurveyResultTextfileWindow : public TextfileWindow {
SurveyResultTextfileWindow(TextfileType file_type) : TextfileWindow(file_type)
{
this->ConstructWindow();
auto result = _survey.CreatePayload(NetworkSurveyHandler::Reason::PREVIEW, true);
this->LoadText(result);
this->InvalidateData();