mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
check the scope when checking for duplicate vector sub-defs
This commit is contained in:
parent
3b65cbc35d
commit
cab813c559
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue