mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-04-05 01:11:00 +00:00
First generate the globals, then the fields, so the defs have the correct layout for quake
This commit is contained in:
parent
cafa78d430
commit
f6e5396f9f
1 changed files with 4 additions and 4 deletions
8
ir.c
8
ir.c
|
@ -2817,16 +2817,16 @@ bool ir_builder_generate(ir_builder *self, const char *filename)
|
|||
|
||||
code_init();
|
||||
|
||||
for (i = 0; i < self->fields_count; ++i)
|
||||
for (i = 0; i < self->globals_count; ++i)
|
||||
{
|
||||
if (!ir_builder_gen_field(self, self->fields[i])) {
|
||||
if (!ir_builder_gen_global(self, self->globals[i])) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
for (i = 0; i < self->globals_count; ++i)
|
||||
for (i = 0; i < self->fields_count; ++i)
|
||||
{
|
||||
if (!ir_builder_gen_global(self, self->globals[i])) {
|
||||
if (!ir_builder_gen_field(self, self->fields[i])) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue