# HG changeset patch # User PeterN # Date 2021-05-03 14:12:47 # Node ID bdce16c583e03f216e0e1f4176d366f75bb96956 # Parent 6e985cc7dbb1a47aa63cb71079ade1c3b1a36ae7 Fix #9174: Don't update text effect if it has been reset. (#9183) diff --git a/src/texteff.cpp b/src/texteff.cpp --- a/src/texteff.cpp +++ b/src/texteff.cpp @@ -79,6 +79,7 @@ void UpdateTextEffect(TextEffectID te_id 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(te.center, te.top, te.string_id, te.string_id - 1);