From: <hel...@us...> - 2007-07-17 20:29:53
|
Revision: 11093 http://svn.sourceforge.net/vegastrike/?rev=11093&view=rev Author: hellcatv Date: 2007-07-17 13:29:54 -0700 (Tue, 17 Jul 2007) Log Message: ----------- fixing cut and paste bug with moveBefore iterator.... you need to check if the iterator is already in the new list before moving it there...--seems like a random other list was checked instead Modified Paths: -------------- trunk/vegastrike/src/star_system_generic.cpp Modified: trunk/vegastrike/src/star_system_generic.cpp =================================================================== --- trunk/vegastrike/src/star_system_generic.cpp 2007-07-17 13:42:50 UTC (rev 11092) +++ trunk/vegastrike/src/star_system_generic.cpp 2007-07-17 20:29:54 UTC (rev 11093) @@ -635,7 +635,7 @@ if (unit == un) { un->predicted_priority = 0; int newloc=(current_sim_location+1)%SIM_QUEUE_SIZE; - if (newloc!=current_sim_location) + if (newloc!=queue) iter.moveBefore(this->physics_buffer[newloc]); } } |