Skip to content

Commit

Permalink
mol enum
Browse files Browse the repository at this point in the history
  • Loading branch information
even1024 committed Jan 16, 2024
1 parent 09b5267 commit aab5262
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions api/tests/integration/tests/formats/ref/rna_mod.ket
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
"root": {
"nodes": [
{
"$ref": "mol1"
"$ref": "mol0"
},
{
"$ref": "mol2"
"$ref": "mol1"
},
{
"$ref": "monomer0"
Expand Down
2 changes: 1 addition & 1 deletion core/indigo-core/molecule/src/molecule_json_saver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1366,7 +1366,7 @@ void MoleculeJsonSaver::saveRoot(BaseMolecule& mol, JsonWriter& writer)
_no_template_molecules.emplace_back(std::move(component));
writer.StartObject();
writer.Key("$ref");
std::string mol_node = std::string("mol") + std::to_string(idx);
std::string mol_node = std::string("mol") + std::to_string(_no_template_molecules.size() - 1);
writer.String(mol_node.c_str());
writer.EndObject();
}
Expand Down

0 comments on commit aab5262

Please sign in to comment.