[wpdev-commits] wolfpack world.cpp,1.122,1.123
Brought to you by:
rip,
thiagocorrea
From: Sebastian H. <dar...@us...> - 2004-09-04 15:24:36
|
Update of /cvsroot/wpdev/wolfpack In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22171 Modified Files: world.cpp Log Message: Likely fix for spddmn's change. Index: world.cpp =================================================================== RCS file: /cvsroot/wpdev/wolfpack/world.cpp,v retrieving revision 1.122 retrieving revision 1.123 diff -C2 -d -r1.122 -r1.123 *** world.cpp 4 Sep 2004 08:36:22 -0000 1.122 --- world.cpp 4 Sep 2004 15:24:22 -0000 1.123 *************** *** 741,744 **** --- 741,754 ---- } + // post process all loaded objects + // Note from DarkStorm: I THINK it's important to do this before + // the deletion of objects, otherwise you might have items in this + // list that are already deleted. + QPtrList<PersistentObject>::const_iterator cit(objects.begin()); + + while (cit != objects.end()) { + (*cit)->postload(0); + ++cit; + } if ( deleteItems.count() > 0 ) *************** *** 780,791 **** PersistentBroker::instance()->disconnect(); - - // post process all loaded objects - QPtrList<PersistentObject>::const_iterator cit(objects.begin()); - - while (cit != objects.end()) { - (*cit)->postload(0); - ++cit; - } } --- 790,793 ---- |