GameObjects: fix a condition.
This commit is contained in:
parent
380f77cc80
commit
07832e6a89
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue