From 08040a630b6aed8b88246f3ba3ee85d5f7bd3afb Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Wed, 10 Sep 2008 00:43:08 +0000 Subject: [FIX] Players now have money [FIX] Some more things added to Arena stuff [FIX] Can now delete objects in the tree in Sigmodr [FIX] Setting Sigmods as dirty is better now git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@258 6ecfd1a5-f3ed-3746-8530-beee90d26b22 --- sigmod/Map.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'sigmod/Map.cpp') diff --git a/sigmod/Map.cpp b/sigmod/Map.cpp index 07509021..fe599cc6 100644 --- a/sigmod/Map.cpp +++ b/sigmod/Map.cpp @@ -562,12 +562,12 @@ Sigmod::Map& Sigmod::Map::operator=(const Map& rhs) void Sigmod::Map::clear() { - while (effectCount()) - deleteEffect(0); - while (trainerCount()) - deleteTrainer(0); - while (warpCount()) - deleteWarp(0); - while (wildListCount()) - deleteWildList(0); + qDeleteAll(m_effects); + m_effects.clear(); + qDeleteAll(m_trainers); + m_trainers.clear(); + qDeleteAll(m_warps); + m_warps.clear(); + qDeleteAll(m_wildLists); + m_wildLists.clear(); } -- cgit