aboutsummaryrefslogtreecommitdiffstats
path: root/AST.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'AST.cpp')
-rw-r--r--AST.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/AST.cpp b/AST.cpp
index e8bdecf3..2972cb5c 100644
--- a/AST.cpp
+++ b/AST.cpp
@@ -469,7 +469,7 @@ void MemberAccess::checkTypeRequirements()
unsigned memberIndex = type.memberNameToIndex(*m_memberName);
if (memberIndex >= type.getMemberCount())
BOOST_THROW_EXCEPTION(createTypeError("Member \"" + *m_memberName + "\" not found in " + type.toString()));
- m_type = type.getMemberByIndex(memberIndex).getType();
+ m_type = type.getMemberByIndex(memberIndex);
m_isLvalue = true;
}