src/messagelog.cpp

changeset 512
adab82ab13a5
parent 504
6a1fa662bfc1
child 513
29eb671b34f6
--- a/src/messagelog.cpp	Fri Oct 18 18:12:23 2013 +0300
+++ b/src/messagelog.cpp	Fri Oct 18 18:16:54 2013 +0300
@@ -74,7 +74,7 @@
 void MessageManager::addLine (str line)
 {	// If there's too many entries, pop the excess out
 	while (m_lines.size() >= g_maxMessages)
-		m_lines.erase (0);
+		m_lines.removeFirst();
 
 	m_lines << Line (line);
 

mercurial