diff --git a/texteff.c b/texteff.c --- a/texteff.c +++ b/texteff.c @@ -246,7 +246,7 @@ void AddTextEffect(StringID msg, int x, te->params_1 = GetDParam(0); te->params_2 = GetDParam(4); - GetString(buffer, msg); + GetString(buffer, msg, lastof(buffer)); w = GetStringBoundingBox(buffer).width; te->x = x - (w >> 1);