Skip to content

Commit

Permalink
Fixed|Client: Ignore unknown settings in profile when reading
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Mar 15, 2014
1 parent 6a3b7e0 commit 9189210
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions doomsday/client/src/settingsregister.cpp
Expand Up @@ -353,8 +353,11 @@ DENG2_OBSERVES(App, GameChange)
if(!e->isBlock()) continue;

de::Info::BlockElement const &setBlock = e->as<de::Info::BlockElement>();
prof->values[setBlock.name()] = textToSettingValue(setBlock.keyValue("value").text,
setBlock.name());
if(settings.contains(setBlock.name())) // ignore unknown settings
{
prof->values[setBlock.name()] = textToSettingValue(setBlock.keyValue("value").text,
setBlock.name());
}
}
}
}
Expand Down

0 comments on commit 9189210

Please sign in to comment.