1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-22 10:22:52 +01:00

config: fix input string parsing

This commit is contained in:
Anonymous Maarten 2017-02-18 23:06:56 +01:00 committed by Daniel Evans
parent 9cf939433c
commit d8cda62668

View File

@ -134,7 +134,8 @@ GameConfig::ParseResult GameConfig::parseConfig(
try {
if (srcType == ParseType::STRING) {
pt::read_ini(source, srcTree);
std::istringstream iss(source);
pt::read_ini(iss, srcTree);
} else if (srcType == ParseType::FILE) {
pt::read_ini(source, srcTree);
}