Fix a crash when properties have setters but not getters.

This commit is contained in:
David Anderson
2014-10-29 20:51:03 -07:00
parent 86ddf1fea0
commit e7fc06910b
4 changed files with 27 additions and 3 deletions
+1 -2
View File
@@ -3686,8 +3686,7 @@ int parse_property_accessor(const typeinfo_t *type, methodmap_t *map, methodmap_
// Must have one extra argument taking the return type.
arginfo *arg = &target->dim.arglist[1];
if (arg->ident == 0 ||
arg->ident != iVARIABLE ||
if (arg->ident != iVARIABLE ||
arg->hasdefault ||
arg->numtags != 1 ||
arg->tags[0] != type->tag)