Skip to content

Commit

Permalink
Check for augments already on item fixes #77
Browse files Browse the repository at this point in the history
  • Loading branch information
Codinablack committed Feb 19, 2025
1 parent e77661d commit 4fa3ed6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/item.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -830,7 +830,9 @@ bool Item::unserializeAugments(PropStream& propStream)
if (!result) {
return result;
} else {
this->addAugment(augment);
if (!hasAugment(augment->getName())) {
this->addAugment(augment);
}
}
}
return true;
Expand Down

0 comments on commit 4fa3ed6

Please sign in to comment.