Customized footer.
[gedcom-parse.git] / gom / association.c
index 9e392099c5fe73daed06146a375ed7e339952c11..dc45c06324fa32a810c80a542d8270155e3dac56 100644 (file)
@@ -42,13 +42,14 @@ Gedcom_ctxt sub_assoc_start(_ELT_PARAMS_)
   else {
     struct association *assoc = SUB_MAKEFUNC(association)();
     if (assoc) {
+      int type = ctxt_type(ctxt);
       assoc->to = GEDCOM_XREF_PTR(parsed_value);
-      
-      switch (ctxt->ctxt_type) {
+
+      switch (type) {
        case REC_INDI:
          ADDFUNC2(individual,association)(ctxt, assoc);
        default:
-         UNEXPECTED_CONTEXT(ctxt->ctxt_type);
+         UNEXPECTED_CONTEXT(type);
       }
       result = MAKE_GOM_CTXT(elt, association, assoc);
     }