Ignore:
Timestamp:
05/06/25 22:56:57 (2 days ago)
Author:
Maciej Komosinski
Message:

Introduced GeneProps::get_standard_values(): a getter function to ensure controlled initialization of the static "standard_values" object

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/genetics/f4/f4_general.cpp

    r1313 r1335  
    11// This file is a part of Framsticks SDK.  http://www.framsticks.com/
    2 // Copyright (C) 1999-2024  Maciej Komosinski and Szymon Ulatowski.
     2// Copyright (C) 1999-2025  Maciej Komosinski and Szymon Ulatowski.
    33// See LICENSE.txt for details.
    44
     
    642642
    643643        // create ancestor cell
    644         C[0] = new f4_Cell(this, 0, genome, genome, NULL, 0, GeneProps::standard_values);
     644        C[0] = new f4_Cell(this, 0, genome, genome, NULL, 0, GeneProps::get_standard_values());
    645645        cell_count = 1;
    646646        development_stagnation = false;
     
    882882{
    883883        if (tmpcel) delete tmpcel;
    884         tmpcel = new f4_Cell(-1, NULL, 0, GeneProps::standard_values);
     884        tmpcel = new f4_Cell(-1, NULL, 0, GeneProps::get_standard_values());
    885885        out = "";
    886886        toF1GenoRec(0, out);
Note: See TracChangeset for help on using the changeset viewer.