1.5: Fuckin' UE5... #38
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue