mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-22 02:12:45 +01:00
config: fix input string parsing
This commit is contained in:
parent
9cf939433c
commit
d8cda62668
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user