From 7c221f7114c95c1a1103eed094d5a9c89cd660d4 Mon Sep 17 00:00:00 2001 From: Gabriel Studer <gabriel.studer@unibas.ch> Date: Fri, 13 Dec 2024 10:37:10 +0100 Subject: [PATCH] OMF: avoid infinit loop when reconstructing compressed tri-peptides --- modules/io/src/mol/omf.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/io/src/mol/omf.cc b/modules/io/src/mol/omf.cc index ae87b6b72..d48718644 100644 --- a/modules/io/src/mol/omf.cc +++ b/modules/io/src/mol/omf.cc @@ -2575,6 +2575,8 @@ void ChainData::FromStream(std::istream& stream, } else { res_idx += 1; } + } else { + res_idx += 1; } } } @@ -2648,6 +2650,8 @@ void ChainData::FromStream(std::istream& stream, res_idx += 1; res_start_idx += res_def_one.anames.size(); } + } else { + res_idx += 1; } } } -- GitLab