1.5: Fuckin' UE5... #38

Manually merged
williamjcm merged 126 commits from one-point-five into master 2024-07-22 11:06:13 +02:00
Showing only changes of commit 07832e6a89 - Show all commits

View file

@ -264,7 +264,7 @@ Profile::material(GameData::MaterialID id) const {
bool
Profile::setMaterial(GameData::MaterialID id, std::int32_t amount) {
Containers::StringView container = id > GameData::MaterialID::MixedComposition ? PROFILE_QUARK_DATA : PROFILE_MATERIAL;
Containers::StringView container = id >= GameData::MaterialID::MixedComposition ? PROFILE_QUARK_DATA : PROFILE_MATERIAL;
auto mats_prop = _profile.at<Gvas::Types::ArrayProperty>(container);
if(!mats_prop) {