mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-22 02:11:19 +00:00
[qfcc] Treat vectors and quaternions as non-scalars
Fixes a segfault when initializing vectors thai was caused by the earlier block init fix.
This commit is contained in:
parent
6988752dea
commit
b6a8a93cc3
1 changed files with 3 additions and 0 deletions
|
@ -969,6 +969,9 @@ int
|
|||
is_nonscalar (const type_t *type)
|
||||
{
|
||||
type = unalias_type (type);
|
||||
if (is_vector (type) || is_quaternion (type)) {
|
||||
return 1;
|
||||
}
|
||||
if (type->width < 2) {
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue