From 7dc90fcc490ff46892216f6dfb2e17a7977e9619 Mon Sep 17 00:00:00 2001 From: Jake Traynham Date: Thu, 30 May 2013 21:23:28 -0500 Subject: [PATCH] ifstream constructor takes a c string --- Core/CwCheat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/CwCheat.cpp b/Core/CwCheat.cpp index 904f388873..8b1213ee73 100644 --- a/Core/CwCheat.cpp +++ b/Core/CwCheat.cpp @@ -167,7 +167,7 @@ std::vector CWCheatEngine::GetCodesList() { char* skip = "//"; std::vector codesList; // Read from INI here - std::ifstream list(title3); + std::ifstream list(title3.c_str()); for (int i = 0; !list.eof(); i ++) { getline(list, line, '\n'); if (line.substr(0,2) == skip) {