diff --git a/src/config.cpp b/src/config.cpp index cbbbe99..5db26f5 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -348,7 +348,11 @@ void Config::readGameINI() size_t inLen = game.title.size(); size_t outLen = inLen * 4; std::string buf(outLen, '\0'); +#ifdef _MSC_VER + const char *inPtr = game.title.c_str(); +#else char *inPtr = const_cast(game.title.c_str()); +#endif char *outPtr = const_cast(buf.c_str()); errno = 0;