GameObjects: fix a condition.

This commit is contained in:
Guillaume Jacquemin 2024-07-15 15:31:16 +02:00
parent 380f77cc80
commit 07832e6a89
Signed by: williamjcm
SSH key fingerprint: SHA256:AYLOg+iTV0ElElnlu4vqM4edFazVdRiuQB0Y5LoKc4A

View file

@ -264,7 +264,7 @@ Profile::material(GameData::MaterialID id) const {
bool bool
Profile::setMaterial(GameData::MaterialID id, std::int32_t amount) { 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); auto mats_prop = _profile.at<Gvas::Types::ArrayProperty>(container);
if(!mats_prop) { if(!mats_prop) {