check the scope when checking for duplicate vector sub-defs
This commit is contained in:
parent
3b65cbc35d
commit
cab813c559
|
@ -187,7 +187,7 @@ vector_component (int is_field, def_t *vec, int comp, scope_t *scope,
|
||||||
name = save_string (va (vector_component_names[comp], vec->name));
|
name = save_string (va (vector_component_names[comp], vec->name));
|
||||||
d = get_def (is_field ? &type_floatfield : &type_float, name, scope,
|
d = get_def (is_field ? &type_floatfield : &type_float, name, scope,
|
||||||
st_none);
|
st_none);
|
||||||
if (d) {
|
if (d && d->scope == scope) {
|
||||||
if (vec->external) {
|
if (vec->external) {
|
||||||
error (0, "internal error");
|
error (0, "internal error");
|
||||||
abort ();
|
abort ();
|
||||||
|
|
Loading…
Reference in New Issue