From 59ee8e97986426b7cb2814761212d05fa5dc54a6 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Wed, 30 Aug 2023 07:05:49 +0300 Subject: [PATCH 10/10] Qt: Fix science dialog crash with a Future Tech Reported by alain_bkr See osdn #47787 Signed-off-by: Marko Lindqvist --- client/gui-qt/citydlg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/gui-qt/citydlg.cpp b/client/gui-qt/citydlg.cpp index 5957ac02c1..db952f658d 100644 --- a/client/gui-qt/citydlg.cpp +++ b/client/gui-qt/citydlg.cpp @@ -147,7 +147,7 @@ void progress_bar::set_pixmap(int n) { struct sprite *sprite; - if (valid_advance_by_number(n)) { + if (valid_advance_by_number(n) && !is_future_tech(n)) { sprite = get_tech_sprite(tileset, n); } else { sprite = nullptr; -- 2.40.1