From 7cf517b6a8e2b221bc3f2351471a542d0c0043d3 Mon Sep 17 00:00:00 2001 From: Thomas Holder Date: Mon, 25 Sep 2023 16:28:02 +0200 Subject: [PATCH] Fix mouse_selection_mode=3 (segments) PyMOL 2.4 regression Fixes https://github.com/schrodinger/pymol-open-source/issues/313 --- layer3/Selector.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layer3/Selector.cpp b/layer3/Selector.cpp index 902e60fd4..9fe93859b 100644 --- a/layer3/Selector.cpp +++ b/layer3/Selector.cpp @@ -8963,7 +8963,7 @@ static int SelectorLogic1(PyMOLGlobals * G, EvalElem * inp_base, int state) int break_atom_low = 0; int last_tag = 0; for(a = cNDummyAtoms; a < n_atom; a++) { - auto& table_a = I->Table[cNDummyAtoms]; + auto& table_a = I->Table[a]; if((tag = base_0_sele[a]) && ((a >= break_atom_high) || (base_0_sele[a] != last_tag))) { if(tag != last_tag)