Changeset 4efdad for molecuilder


Ignore:
Timestamp:
Nov 4, 2009, 2:51:02 PM (16 years ago)
Author:
Frederik Heber <heber@…>
Children:
e1900f
Parents:
a3ffb44
Message:

BUGFIX: Allocated one molecule too much in config::Load().

  • Count() was called from Subgraph not from Subgraph->next
File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/config.cpp

    ra3ffb44 r4efdad  
    10721072
    10731073  // 6a. create array of molecules to fill
    1074   const int MolCount = Subgraphs->Count();
     1074  const int MolCount = Subgraphs->next->Count();
    10751075  molecule **molecules = Malloc<molecule *>(MolCount, "config::Load() - **molecules");
    10761076  for (int i=0;i<MolCount;i++) {
Note: See TracChangeset for help on using the changeset viewer.