(svn r2073) - Fix: Fixed an apparent oversight in AddTextMessage() which is likely to have caused some messages not expiring from the chatterbox after the given time, as reported by dp-.
authorpasky
Sat, 26 Mar 2005 04:02:50 +0000
changeset 1569 32abdc483dc5
parent 1568 3bfd488306ba
child 1570 c9b6cf44ce53
(svn r2073) - Fix: Fixed an apparent oversight in AddTextMessage() which is likely to have caused some messages not expiring from the chatterbox after the given time, as reported by dp-.
texteff.c
--- a/texteff.c	Fri Mar 25 20:37:06 2005 +0000
+++ b/texteff.c	Sat Mar 26 04:02:50 2005 +0000
@@ -83,7 +83,7 @@
 	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;
 }