[Avida-SVN] r2819 - in branches/hjg-dev/source: cpu main

hjg at myxo.css.msu.edu hjg at myxo.css.msu.edu
Wed Oct 8 08:05:07 PDT 2008


Author: hjg
Date: 2008-10-08 11:05:07 -0400 (Wed, 08 Oct 2008)
New Revision: 2819

Modified:
   branches/hjg-dev/source/cpu/cHardwareCPU.cc
   branches/hjg-dev/source/main/cOrganism.h
Log:
bug fix

Modified: branches/hjg-dev/source/cpu/cHardwareCPU.cc
===================================================================
--- branches/hjg-dev/source/cpu/cHardwareCPU.cc	2008-10-08 14:16:53 UTC (rev 2818)
+++ branches/hjg-dev/source/cpu/cHardwareCPU.cc	2008-10-08 15:05:07 UTC (rev 2819)
@@ -6725,7 +6725,6 @@
 		}
 		
 		// update the donor's reputation by incrementing by 1.
-		
 		// check for a reputation
 		if (organism->HasOpinion()) {
 			organism->SetOpinion(organism->GetOpinion().first + 1);

Modified: branches/hjg-dev/source/main/cOrganism.h
===================================================================
--- branches/hjg-dev/source/main/cOrganism.h	2008-10-08 14:16:53 UTC (rev 2818)
+++ branches/hjg-dev/source/main/cOrganism.h	2008-10-08 15:05:07 UTC (rev 2819)
@@ -456,7 +456,7 @@
 	bool IsDonor(int neighbor_id);
 	// Has checked reputation
 	void CheckedReputation() {InitReputation(); checkedReputation=true; }
-	bool HasCheckedReputation() { return checkedReputation; }
+	bool HasCheckedReputation() { InitReputation(); return checkedReputation; }
 		
 protected:
 	// Initialize reputation support




More information about the Avida-cvs mailing list