From: Christian S. <blu...@us...> - 2004-10-24 20:14:04
|
Update of /cvsroot/planeshift/planeshift/src/common/paws In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7199/src/common/paws Modified Files: pawstree.cpp Log Message: - Fixed recent CS change to csList. Please update to latest CS to avoid troubles Index: pawstree.cpp =================================================================== RCS file: /cvsroot/planeshift/planeshift/src/common/paws/pawstree.cpp,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** pawstree.cpp 11 Jul 2004 21:15:21 -0000 1.20 --- pawstree.cpp 24 Oct 2004 20:13:53 -0000 1.21 *************** *** 1229,1242 **** int currIndex=0; ! while ((iter.HasCurrent()) && (currIndex != index)) { - currIndex++; iter.Next(); } ! if (iter.HasCurrent()) ! return iter->widget; ! else ! return NULL; } --- 1229,1242 ---- int currIndex=0; ! while ((iter.HasNext())) { iter.Next(); + if(currIndex == index) + return iter->widget; + + currIndex++; } ! return NULL; } |