mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-01-31 03:50:36 +00:00
generate address of store_return values created with ir_value_out properly
This commit is contained in:
parent
cf04b5ed01
commit
5f2a775d41
1 changed files with 2 additions and 0 deletions
2
ir.c
2
ir.c
|
@ -529,6 +529,8 @@ void ir_value_code_setaddr(ir_value *self, int32_t gaddr)
|
|||
|
||||
int32_t ir_value_code_addr(const ir_value *self)
|
||||
{
|
||||
if (self->store == store_return)
|
||||
return OFS_RETURN + self->code.addroffset;
|
||||
return self->code.globaladdr + self->code.addroffset;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue