]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
Revert "Fix ent.vec.{x,y,z} writes"
authorWolfgang Bumiller <wry.git@bumiller.com>
Sat, 19 Nov 2016 15:22:13 +0000 (16:22 +0100)
committerWolfgang Bumiller <wry.git@bumiller.com>
Sat, 19 Nov 2016 15:22:13 +0000 (16:22 +0100)
This reverts commit ad1cfcfeaab754b3a7d34a152b0d334f7f040239.

ir.cpp

diff --git a/ir.cpp b/ir.cpp
index 76d9db3d57b15cf5dad83b494dfe21d9ee8286a3..7ac84773830e0a148b19b1eca21268192e1fac4b 100644 (file)
--- a/ir.cpp
+++ b/ir.cpp
@@ -914,7 +914,7 @@ ir_value* ir_value::vectorMember(unsigned int member)
         m = new ir_value(move(name), m_store, TYPE_FIELD);
         if (!m)
             return nullptr;
-        m->m_fieldtype = TYPE_VECTOR;
+        m->m_fieldtype = TYPE_FLOAT;
         m->m_context = m_context;
 
         m_members[member] = m;