diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lj_cdata.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lj_cdata.c b/src/lj_cdata.c index 482add4b..b477ce77 100644 --- a/src/lj_cdata.c +++ b/src/lj_cdata.c | |||
@@ -178,6 +178,7 @@ collect_attrib: | |||
178 | if (fct && ctype_isconstval(fct->info)) | 178 | if (fct && ctype_isconstval(fct->info)) |
179 | return fct; | 179 | return fct; |
180 | } | 180 | } |
181 | ct = sct; /* Allow resolving metamethods for constructors, too. */ | ||
181 | } | 182 | } |
182 | } | 183 | } |
183 | if (ctype_isptr(ct->info)) { /* Automatically perform '->'. */ | 184 | if (ctype_isptr(ct->info)) { /* Automatically perform '->'. */ |