[Avida-SVN] r3050 - branches/movement/source/main
welsberr at myxo.css.msu.edu
welsberr at myxo.css.msu.edu
Mon Dec 15 14:44:20 PST 2008
Author: welsberr
Date: 2008-12-15 17:44:20 -0500 (Mon, 15 Dec 2008)
New Revision: 3050
Modified:
branches/movement/source/main/cPopulation.cc
Log:
Added sanity check to cPopulation::Tumble
Modified: branches/movement/source/main/cPopulation.cc
===================================================================
--- branches/movement/source/main/cPopulation.cc 2008-12-15 21:13:27 UTC (rev 3049)
+++ branches/movement/source/main/cPopulation.cc 2008-12-15 22:44:20 UTC (rev 3050)
@@ -5238,6 +5238,9 @@
// such circumstances.
void cPopulation::Tumble(cOrganism* organism)
{
+ // Sanity check
+ assert(organism);
+
// Get the context
cAvidaContext& ctx = m_world->GetDefaultContext();
// Get number of neighbor cells that the organism can move to.
More information about the Avida-cvs
mailing list