From 630783c8e852436e1f477e5062d65232fe57afa5 Mon Sep 17 00:00:00 2001
From: Stan Moore <stanmoore1@gmail.com>
Date: Thu, 12 Jan 2017 16:22:24 -0700
Subject: [PATCH] Fixing neighbor bug

---
 src/neighbor.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/neighbor.cpp b/src/neighbor.cpp
index 59abc29f19..af59391209 100644
--- a/src/neighbor.cpp
+++ b/src/neighbor.cpp
@@ -909,9 +909,10 @@ void Neighbor::init_pair()
     done = 1;
     for (i = 0; i < npair_perpetual; i++) {
       ptr = NULL;
+      if (lists[plist[i]]->listfull) ptr = lists[plist[i]]->listfull;
       if (lists[plist[i]]->listcopy) ptr = lists[plist[i]]->listcopy;
+      // listskip check must be after listfull check
       if (lists[plist[i]]->listskip) ptr = lists[plist[i]]->listskip;
-      if (lists[plist[i]]->listfull) ptr = lists[plist[i]]->listfull;
       if (ptr == NULL) continue;
       for (m = 0; m < nrequest; m++)
         if (ptr == lists[m]) break;
-- 
GitLab