summaryrefslogtreecommitdiffstats
path: root/pokemod/Map.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'pokemod/Map.cpp')
-rw-r--r--pokemod/Map.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/pokemod/Map.cpp b/pokemod/Map.cpp
index e3401e98..7a575271 100644
--- a/pokemod/Map.cpp
+++ b/pokemod/Map.cpp
@@ -699,15 +699,15 @@ Map& Map::operator=(const Map& rhs)
tiles = rhs.tiles;
effects.clear();
for (int i = 0; i < rhs.getEffectCount(); ++i)
- newEffect(*rhs.getEffect(i));
+ effects.append(MapEffect(pokemod, *rhs.getEffect(i), rhs.getEffect(i)->getId()));
trainers.clear();
for (int i = 0; i < rhs.getTrainerCount(); ++i)
- newTrainer(*rhs.getTrainer(i));
+ trainers.append(MapTrainer(pokemod, *rhs.getTrainer(i), rhs.getTrainer(i)->getId()));
warps.clear();
for (int i = 0; i < rhs.getWarpCount(); ++i)
- newWarp(*rhs.getWarp(i));
+ warps.append(MapWarp(pokemod, *rhs.getWarp(i), rhs.getWarp(i)->getId()));
wildLists.clear();
for (int i = 0; i < rhs.getWildListCount(); ++i)
- newWildList(*rhs.getWildList(i));
+ wildLists.append(MapWildList(pokemod, *rhs.getWildList(i), rhs.getWildList(i)->getId()));
return *this;
}