mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-01-20 07:10:42 +00:00
fixing matrix/quaternion constval setters
This commit is contained in:
parent
abdda3ee1b
commit
858854a83e
1 changed files with 2 additions and 2 deletions
4
ir.c
4
ir.c
|
@ -579,7 +579,7 @@ bool ir_value_set_quaternion(ir_value *self, quaternion v)
|
|||
{
|
||||
if (self->vtype != TYPE_QUATERNION)
|
||||
return false;
|
||||
self->constval.vquat = v;
|
||||
memcpy(&self->constval.vquat, v, sizeof(self->constval.vquat));
|
||||
self->isconst = true;
|
||||
return true;
|
||||
}
|
||||
|
@ -588,7 +588,7 @@ bool ir_value_set_matrix(ir_value *self, matrix v)
|
|||
{
|
||||
if (self->vtype != TYPE_MATRIX)
|
||||
return false;
|
||||
self->constval.vmat = v;
|
||||
memcpy(&self->constval.vmat, v, sizeof(self->constval.vmat));
|
||||
self->isconst = true;
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue