From b36bfc7ab0918a0f16bc3ddb7d607d9a4a131dbf Mon Sep 17 00:00:00 2001 From: PeterN Date: Mon, 3 May 2021 15:12:47 +0100 Subject: [PATCH] Fix #9174: Don't update text effect if it has been reset. (#9183) (cherry picked from commit 0bc6f3234664cbd71dab89ddf75b14616cced160) --- src/texteff.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/texteff.cpp b/src/texteff.cpp index d229686945..3f56cd7b58 100644 --- a/src/texteff.cpp +++ b/src/texteff.cpp @@ -85,6 +85,7 @@ void UpdateTextEffect(TextEffectID te_id, StringID msg) void UpdateAllTextEffectVirtCoords() { for (auto &te : _text_effects) { + if (te.string_id == INVALID_STRING_ID) continue; SetDParam(0, te.params_1); SetDParam(1, te.params_2); te.UpdatePosition(ZOOM_LVL_OUT_8X, te.center, te.top, te.string_id, te.string_id - 1);