File tree 2 files changed +7
-2
lines changed
src/common/scripting/core
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ VersionInfo PField::GetVersion()
170
170
{
171
171
VersionInfo Highest = { 0 ,0 ,0 };
172
172
if (!(Flags & VARF_Deprecated)) Highest = mVersion ;
173
- if (Type->mVersion > Highest) Highest = Type->mVersion ;
173
+ if (Type->mVersion > Highest && !Type-> TypeDeprecated ) Highest = Type->mVersion ;
174
174
return Highest;
175
175
}
176
176
Original file line number Diff line number Diff line change @@ -1493,6 +1493,7 @@ PPointer::PPointer(PType *pointsat, bool isconst)
1493
1493
{
1494
1494
mDescriptiveName .Format (" Pointer<%s%s>" , pointsat->DescriptiveName (), isconst ? " readonly " : " " );
1495
1495
mVersion = pointsat->mVersion ;
1496
+ TypeDeprecated = pointsat->TypeDeprecated ;
1496
1497
}
1497
1498
else
1498
1499
{
@@ -1674,7 +1675,11 @@ PClassPointer::PClassPointer(PClass *restrict)
1674
1675
loadOp = OP_LP;
1675
1676
storeOp = OP_SP;
1676
1677
Flags |= TYPE_ClassPointer;
1677
- if (restrict ) mVersion = restrict ->VMType ->mVersion ;
1678
+ if (restrict )
1679
+ {
1680
+ mVersion = restrict ->VMType ->mVersion ;
1681
+ TypeDeprecated = restrict ->VMType ->TypeDeprecated ;
1682
+ }
1678
1683
else mVersion = 0 ;
1679
1684
}
1680
1685
You can’t perform that action at this time.
0 commit comments