From: Wolfgang (Blub) Bumiller Date: Tue, 18 Dec 2012 11:58:15 +0000 (+0100) Subject: vector components are floats, not vectors X-Git-Tag: 0.1.9~61 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=66e6e6329fb19d8e67ac9b72d0a62dfb6db0cb24;p=xonotic%2Fgmqcc.git vector components are floats, not vectors --- diff --git a/ir.c b/ir.c index f5ad97e..458d2cf 100644 --- a/ir.c +++ b/ir.c @@ -3158,6 +3158,8 @@ static void gen_vector_defs(prog_section_def def, const char *name) if (!name || OPTS_FLAG(SINGLE_VECTOR_DEFS)) return; + def.type = TYPE_FLOAT; + len = strlen(name); component = (char*)mem_a(len+3); @@ -3184,6 +3186,8 @@ static void gen_vector_fields(prog_section_field fld, const char *name) if (!name || OPTS_FLAG(SINGLE_VECTOR_DEFS)) return; + def.type = TYPE_FLOAT; + len = strlen(name); component = (char*)mem_a(len+3);