summaryrefslogtreecommitdiffstats
path: root/pokemod/Map.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2008-02-23 00:30:00 +0000
committerBen Boeckel <MathStuf@gmail.com>2008-02-23 00:30:00 +0000
commit9cd7f4656b01cfb243433e1063c0339b2b96bbd4 (patch)
treeb3faeacc636f956013e2972b950a2c1b9cd85f59 /pokemod/Map.cpp
parent0ee1ea1cef9eec7e0187aa9f8f2dc291775e8864 (diff)
downloadsigen-9cd7f4656b01cfb243433e1063c0339b2b96bbd4.tar.gz
sigen-9cd7f4656b01cfb243433e1063c0339b2b96bbd4.tar.xz
sigen-9cd7f4656b01cfb243433e1063c0339b2b96bbd4.zip
[FIX] Changelog/SVN desynchronization fixed
[FIX] skins UI file cleaned up [FIX] ImageCache no longer uses force argument [FIX] operator= now correctly copies subdata from rhs (instead of reassigning ID numbers) [FIX] Pokemod can now be copied [FIX] Pokemod skin calls cleaned up [ADD] PokemodUI.{h, cpp} [ADD] SkinsUI.{h, cpp} git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@70 6ecfd1a5-f3ed-3746-8530-beee90d26b22
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;
}