summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-08-11 21:31:29 +0200
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-08-11 21:59:53 +0200
commit7439b15bfe249615a51e8eadf29c1ca0b0e00b4e (patch)
treeaff9844d8b85535d83cd07f7e728239357dd8968
parent6aa293c687835a2148e735ad1f39dd0badf3d8e9 (diff)
downloadmana-7439b15bfe249615a51e8eadf29c1ca0b0e00b4e.tar.gz
mana-7439b15bfe249615a51e8eadf29c1ca0b0e00b4e.tar.bz2
mana-7439b15bfe249615a51e8eadf29c1ca0b0e00b4e.tar.xz
mana-7439b15bfe249615a51e8eadf29c1ca0b0e00b4e.zip
Fixed handling of --chat-log-dir command line option
It was also setting the screenshot directory. Reviewed-by: Erik Schilling
-rw-r--r--src/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index b7669f0e..e3225d63 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -150,7 +150,8 @@ static void parseOptions(int argc, char *argv[], Client::Options &options)
options.noOpenGL = true;
break;
case 'T':
- options.chatLogDir = std::string(optarg);
+ options.chatLogDir = optarg;
+ break;
case 'i':
options.screenshotDir = optarg;
break;