Update GildedRose.cc

This commit is contained in:
Vova Gromozdin 2023-04-24 08:39:27 +03:00 committed by GitHub
parent abcf3167df
commit 55f2f75351
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,8 +20,11 @@ void GildedRose::updateData()
if (item.name == "Aged Brie")
{
updateQuality(item.quality, 1);
if (item.sellIn < 0)
{
updateQuality(item.quality, 2);
}
else
{
updateQuality(item.quality, 1);
}