summaryrefslogtreecommitdiff
path: root/texteff.c
diff options
context:
space:
mode:
Diffstat (limited to 'texteff.c')
-rw-r--r--texteff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/texteff.c b/texteff.c
index 73789bd06..1a34263cf 100644
--- a/texteff.c
+++ b/texteff.c
@@ -83,7 +83,7 @@ void CDECL AddTextMessage(uint16 color, uint8 duration, const char *message, ...
memmove(&_text_message_list[0], &_text_message_list[1], sizeof(TextMessage) * (MAX_CHAT_MESSAGES - 1));
snprintf(_text_message_list[MAX_CHAT_MESSAGES - 1].message, MAX_TEXTMESSAGE_LENGTH, "%s", buf2);
_text_message_list[MAX_CHAT_MESSAGES - 1].color = color;
- _text_message_list[i].end_date = _date + duration;
+ _text_message_list[MAX_CHAT_MESSAGES - 1].end_date = _date + duration;
_textmessage_dirty = true;
}