[Avida-cvs] [Avida2-svn] r170 - trunk/source/main

dule at myxo.css.msu.edu dule at myxo.css.msu.edu
Sun May 29 17:11:07 PDT 2005


Author: dule
Date: 2005-05-29 20:11:07 -0400 (Sun, 29 May 2005)
New Revision: 170

Modified:
   trunk/source/main/analyze_util.cc
Log:
Minor bug fix in the new dump_task_grid event

Modified: trunk/source/main/analyze_util.cc
===================================================================
--- trunk/source/main/analyze_util.cc	2005-05-29 21:39:02 UTC (rev 169)
+++ trunk/source/main/analyze_util.cc	2005-05-30 00:11:07 UTC (rev 170)
@@ -783,7 +783,7 @@
     for (int j = 0; j < pop->GetWorldY(); j++) {
       int task_sum = 0; 
       if (pop->GetCell(i).IsOccupied() == true) { 
-        cOrganism * organism = pop->GetCell(i).GetOrganism();
+        cOrganism * organism = pop->GetCell(j*pop->GetWorldX()+i).GetOrganism();
         cCPUTestInfo test_info;
         cTestCPU::TestGenome( test_info, organism->GetGenome() );
         cPhenotype & test_phenotype = test_info.GetTestOrganism()->GetPhenotype();




More information about the Avida-cvs mailing list