mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 07:11:41 +00:00
Ensure .zero does not get a vector field for v6 progs.
v6 progs expects .zero to be only 1 word. The code actually tried to keep vector out of .zero, but it seems I'd rearranged the structure defintion without updating the code that kills the vector field. Problem spotted by divVerent.
This commit is contained in:
parent
4fe7efbed8
commit
ce278b2fbf
1 changed files with 1 additions and 2 deletions
|
@ -843,9 +843,8 @@ init_types (void)
|
|||
if (options.code.progsversion == PROG_ID_VERSION) {
|
||||
// vector can't be part of .zero for v6 progs because for v6 progs,
|
||||
// .zero is only one word wide.
|
||||
zero_struct[7].name = 0;
|
||||
zero_struct[6].name = 0;
|
||||
// v6 progs don't have integers or quaternions
|
||||
zero_struct[7].name = 0;
|
||||
param_struct[7].name = 0;
|
||||
type_nil = &type_vector;
|
||||
type_default = &type_float;
|
||||
|
|
Loading…
Reference in a new issue