Profile: actually fix the fix.

This commit is contained in:
Guillaume Jacquemin 2022-12-13 22:53:36 +01:00
parent 81b35476a0
commit 59aa006611
1 changed files with 1 additions and 1 deletions

View File

@ -473,7 +473,7 @@ auto Profile::setResource(Containers::StringView container, MaterialID id, Int a
if(it == mats_prop->items.end()) { if(it == mats_prop->items.end()) {
res_prop = new ResourceItemValue; res_prop = new ResourceItemValue;
if(mats_prop->items.isEmpty()) { if(mats_prop->items.isEmpty()) {
res_prop->name.emplace("ResourceMaterial"); res_prop->name.emplace(container);
} }
res_prop->id = id; res_prop->id = id;
ResourceItemValue::ptr prop{res_prop}; ResourceItemValue::ptr prop{res_prop};