diff options
author | PeterN <peter1138@openttd.org> | 2021-05-03 15:12:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-03 15:12:47 +0100 |
commit | 0bc6f3234664cbd71dab89ddf75b14616cced160 (patch) | |
tree | 14096638912cb2fb7b9fa1e21c987911efbf6278 | |
parent | ece9a356dcae3c9f7fe85a0f7dab87e06d8eb299 (diff) | |
download | openttd-0bc6f3234664cbd71dab89ddf75b14616cced160.tar.xz |
Fix #9174: Don't update text effect if it has been reset. (#9183)
-rw-r--r-- | src/texteff.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/texteff.cpp b/src/texteff.cpp index e29326a90..1c4722ae6 100644 --- a/src/texteff.cpp +++ b/src/texteff.cpp @@ -79,6 +79,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(te.center, te.top, te.string_id, te.string_id - 1); |