summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eval.c b/eval.c
index 6f6412a..748fc52 100644
--- a/eval.c
+++ b/eval.c
@@ -777,7 +777,7 @@ static void *eval_ptr_to_struct_field(Evaluator *ev, Expression *dot_expr) {
} else {
void *ptr;
assert(type_is_builtin(struct_type, BUILTIN_NMS));
- Identifier translated = ident_translate(dot_expr->binary.rhs->ident, &dot_expr->binary.lhs->val.nms->idents);
+ Identifier translated = dot_expr->binary.dot.translated_ident;
if (!eval_address_of_ident(translated, &dot_expr->type, dot_expr->where, &ptr)) {
return NULL;
}