avm1: StageObject::has_property should return true for _x, etc.

This commit is contained in:
Mike Welsh 2020-07-02 13:57:32 -07:00
parent 6feb266576
commit 1240c79f70
1 changed files with 10 additions and 0 deletions

View File

@ -343,6 +343,16 @@ impl<'gc> TObject<'gc> for StageObject<'gc> {
return true;
}
if activation
.avm()
.display_properties
.read()
.get_by_name(&name)
.is_some()
{
return true;
}
let case_sensitive = activation.is_case_sensitive();
if obj
.display_object