summaryrefslogtreecommitdiff
path: root/src/texteff.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/texteff.cpp')
-rw-r--r--src/texteff.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/texteff.cpp b/src/texteff.cpp
index 41907e14d..92c201704 100644
--- a/src/texteff.cpp
+++ b/src/texteff.cpp
@@ -50,7 +50,7 @@ TextEffectID AddTextEffect(StringID msg, int center, int y, uint8 duration, Text
}
if (i == _text_effects.size()) _text_effects.Append();
- TextEffect *te = _text_effects.Get(i);
+ TextEffect *te = _text_effects.data() + i;
/* Start defining this object */
te->string_id = msg;
@@ -69,7 +69,7 @@ TextEffectID AddTextEffect(StringID msg, int center, int y, uint8 duration, Text
void UpdateTextEffect(TextEffectID te_id, StringID msg)
{
/* Update details */
- TextEffect *te = _text_effects.Get(te_id);
+ TextEffect *te = _text_effects.data() + te_id;
if (msg == te->string_id && GetDParam(0) == te->params_1) return;
te->string_id = msg;
te->params_1 = GetDParam(0);