diff options
Diffstat (limited to 'pokemod/Item.cpp')
| -rw-r--r-- | pokemod/Item.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pokemod/Item.cpp b/pokemod/Item.cpp index b857e20e..f6293cf7 100644 --- a/pokemod/Item.cpp +++ b/pokemod/Item.cpp @@ -271,6 +271,6 @@ Item& Item::operator=(const Item& rhs) description = rhs.description; effects.clear(); for (int i = 0; i < rhs.getEffectCount(); ++i) - newEffect(*rhs.getEffect(i)); + effects.append(ItemEffect(pokemod, *rhs.getEffect(i), rhs.getEffect(i)->getId())); return *this; } |
