only use alias data if it's classname or if it's not overridden

This commit is contained in:
Jonathan 2022-06-14 19:37:36 -04:00
parent 23ae3edd56
commit 7911782a3b
1 changed files with 3 additions and 1 deletions

View File

@ -1660,7 +1660,9 @@ bool ParseEntity(parser_t &parser, mapentity_t *entity)
if (alias_it != options.loaded_entity_defs.end()) {
for (auto &pair : alias_it->second) {
entity->epairs.set(pair.first, pair.second);
if (pair.first == "classname" || !entity->epairs.has(pair.first)) {
entity->epairs.set(pair.first, pair.second);
}
}
}