We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e8255d commit 84b5084Copy full SHA for 84b5084
Source/WrapDelphi.pas
@@ -1162,8 +1162,8 @@ function ValidateClassRef(PyValue: PPyObject; TypeInfo: PTypeInfo;
1162
if Assigned(LPythonType) and LPythonType.PyObjectClass.InheritsFrom(TPyDelphiObject) then
1163
begin
1164
ClassRef := TPyDelphiObjectClass(LPythonType.PyObjectClass).DelphiObjectClass;
1165
- TypeInfo := TypeInfo^.TypeData^.InstanceType^;
1166
- if Assigned(TypeInfo) and (ClassRef.InheritsFrom(TypeInfo^.TypeData^.ClassType)) then
+ TypeInfo := GetTypeData(TypeInfo)^.InstanceType^;
+ if Assigned(TypeInfo) and (ClassRef.InheritsFrom(GetTypeData(TypeInfo)^.ClassType)) then
1167
Result := True
1168
else
1169
ErrMsg := rs_IncompatibleClasses;
0 commit comments