mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Fixed bug where file display fields would be generated needlessly.
This commit is contained in:
@@ -761,7 +761,7 @@ namespace YAML {
|
||||
if (rhs.IsConditional())
|
||||
out << Key << "condition" << Value << rhs.Condition();
|
||||
|
||||
if (!rhs.DisplayName().empty())
|
||||
if (rhs.DisplayName() != rhs.Name())
|
||||
out << Key << "display" << Value << rhs.DisplayName();
|
||||
|
||||
out << EndMap;
|
||||
|
||||
Reference in New Issue
Block a user