mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-04-11 20:03:11 +00:00
[qfcc] Create generic params only in generic blocks
Since adding type properties, spec.type_expr wasn't enough for detecting generic parameters. Fixes the missing `points` parameter in simplex.r.
This commit is contained in:
parent
2c96acc4f0
commit
a3a4ca90b5
1 changed files with 1 additions and 1 deletions
|
@ -544,7 +544,7 @@ make_param (specifier_t spec, rua_ctx_t *ctx)
|
|||
}
|
||||
|
||||
param_t *param;
|
||||
if (spec.type_expr) {
|
||||
if (generic_block && spec.type_expr) {
|
||||
param = new_generic_param (spec.type_expr, spec.sym->name);
|
||||
} else if (spec.sym) {
|
||||
spec = spec_process (spec, ctx);
|
||||
|
|
Loading…
Reference in a new issue