summaryrefslogtreecommitdiff
path: root/src/gui/chat.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/chat.cpp')
-rw-r--r--src/gui/chat.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/chat.cpp b/src/gui/chat.cpp
index 40a44b13..cc625358 100644
--- a/src/gui/chat.cpp
+++ b/src/gui/chat.cpp
@@ -29,12 +29,12 @@
#include "../main.h"
#include <iostream>
-ChatWindow::ChatWindow(const char *logfile, int item_num):
+ChatWindow::ChatWindow(const std::string &logfile):
Window("")
{
- chatlog_file.open(logfile, std::ios::out | std::ios::app);
+ chatlog_file.open(logfile.c_str(), std::ios::out | std::ios::app);
items = 0;
- items_keep = item_num;
+ items_keep = 20;
setContentSize(600, 100);
textOutput = new TextBox();