summaryrefslogtreecommitdiff
path: root/compiler/ncgcnv.pas
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/ncgcnv.pas')
-rw-r--r--compiler/ncgcnv.pas2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/ncgcnv.pas b/compiler/ncgcnv.pas
index 38939f1142..4b435a192b 100644
--- a/compiler/ncgcnv.pas
+++ b/compiler/ncgcnv.pas
@@ -552,7 +552,7 @@ interface
(tpointerdef(p^.resultdef).definition.deftype=objectdef) and not
(tobjectdef(tpointerdef(p^.resultdef).definition).isclass) and
((tobjectdef(tpointerdef(p^.resultdef).definition).options and oo_hasvmt)<>0) and
- (cs_check_range in aktlocalswitches) then
+ (cs_check_range in current_settings.localswitches) then
checkobject;
{$endif TESTOBJEXT2}
end;