forked from mirror/openmw-tes3mp
mwiniimport: ignore empty values
This commit is contained in:
parent
aa45127895
commit
4685aea2a1
1 changed files with 4 additions and 0 deletions
|
@ -690,6 +690,10 @@ MwIniImporter::multistrmap MwIniImporter::loadIniFile(const std::string& filenam
|
|||
|
||||
std::string key(section + ":" + line.substr(0,pos));
|
||||
std::string value(line.substr(pos+1));
|
||||
if(value.empty()) {
|
||||
std::cout << "Warning: ignored empty value for key '" << key << "'." << std::endl;
|
||||
continue;
|
||||
}
|
||||
|
||||
multistrmap::iterator it;
|
||||
if((it = map.find(key)) == map.end()) {
|
||||
|
|
Loading…
Reference in a new issue