Compare commits

...

2 commits

Author SHA1 Message Date
7b64d78b5b CMakeLists: bump version number. 2022-12-13 22:53:47 +01:00
59aa006611 Profile: actually fix the fix. 2022-12-13 22:53:36 +01:00
2 changed files with 2 additions and 2 deletions

View file

@ -18,7 +18,7 @@ set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF) set(CMAKE_CXX_EXTENSIONS OFF)
set(SAVETOOL_PROJECT_VERSION 1.4.2) set(SAVETOOL_PROJECT_VERSION 1.4.3)
find_package(Corrade REQUIRED Main Containers Utility) find_package(Corrade REQUIRED Main Containers Utility)
find_package(Magnum REQUIRED GL Sdl2Application) find_package(Magnum REQUIRED GL Sdl2Application)

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};