diff --git a/src/memberdef.cpp b/src/memberdef.cpp
index 10c5b29..6b1300c 100644
--- a/src/memberdef.cpp
+++ b/src/memberdef.cpp
@@ -809,7 +809,7 @@ MemberDef *MemberDef::deepCopy() const
   }
   if (m_impl->enumFields)
   {
-    MemberListIterator mli(*m_impl->redefinedBy);
+    MemberListIterator mli(*m_impl->enumFields);
     MemberDef *md;
     for (mli.toFirst();(md=mli.current());++mli)
     {
