Skip to content

Commit 2b0eeab

Browse files
committed
Fix pyscripter#313 (XE2 compatibility)
1 parent 0aefe0f commit 2b0eeab

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Source/WrapDelphi.pas

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2786,11 +2786,11 @@ function TPyDelphiMethodObject.Call(ob1, ob2: PPyObject): PPyObject;
27862786
Num: Int64;
27872787
begin
27882788
Result := False;
2789-
if (RttiParam.ParamType = nil) or (RttiParam.ParamType.Handle = nil) or (RttiParam.ParamType.Handle.TypeData = nil) then
2789+
if (RttiParam.ParamType = nil) or (RttiParam.ParamType.Handle = nil) or (GetTypeData(RttiParam.ParamType.Handle)) = nil) then
27902790
Exit;
2791-
elType := RttiParam.ParamType.Handle.TypeData.elType;
2791+
elType := GetTypeData(RttiParam.ParamType.Handle).elType;
27922792
if elType = nil then
2793-
elType := RttiParam.ParamType.Handle.TypeData.elType2;
2793+
elType := GetTypeData(RttiParam.ParamType.Handle).elType2;
27942794
if elType = nil then
27952795
Exit;
27962796

0 commit comments

Comments
 (0)