Fix: if you unsign a negetive number, it becomes positive, and chat breaks.

This commit is contained in:
Charles Lohr
2004-08-28 15:29:31 +00:00
parent 6d5b7910a4
commit 810c039181
+1 -1
View File
@@ -332,7 +332,7 @@ void ScreenNetSelectMusic::HandleScreenMessage( const ScreenMessage SM )
vector <wstring> wLines;
m_textOutHidden.GetLines( wLines );
CString actualText = "";
for (unsigned i = max(wLines.size() - SHOW_CHAT_LINES, unsigned(0) ) ; i < wLines.size() ; ++i)
for (unsigned i = (unsigned) max(int(wLines.size() - SHOW_CHAT_LINES), (int)0 ) ; i < wLines.size() ; ++i)
actualText += WStringToCString(wLines[i])+'\n';
m_textChatOutput.SetText( actualText );
break;