浏览代码

* fixed crash with procvar load in tp mode

peter 25 年之前
父节点
当前提交
3315ad63d4
共有 1 个文件被更改,包括 6 次插入2 次删除
  1. 6 2
      compiler/ncal.pas

+ 6 - 2
compiler/ncal.pas

@@ -794,7 +794,8 @@ interface
                          (m_tp_procvar in aktmodeswitches) then
                         begin
                           if (symtableprocentry^.owner^.symtabletype=objectsymtable) and
-                             is_class(pdef(symtableprocentry^.owner^.defowner)) then
+                             assigned(methodpointer) { and
+                             is_class(pdef(symtableprocentry^.owner^.defowner))} then
                            hpt:=genloadmethodcallnode(pprocsym(symtableprocentry),symtableproc,
                                  methodpointer.getcopy)
                           else
@@ -1534,7 +1535,10 @@ begin
 end.
 {
   $Log$
-  Revision 1.18  2000-11-29 00:30:32  florian
+  Revision 1.19  2000-12-17 14:35:12  peter
+    * fixed crash with procvar load in tp mode
+
+  Revision 1.18  2000/11/29 00:30:32  florian
     * unused units removed from uses clause
     * some changes for widestrings