Make nstr_exec_val() return its first argument
This commit is contained in:
parent
0bcb047806
commit
93a5779e66
3 changed files with 4 additions and 4 deletions
|
@ -102,8 +102,7 @@ xdeval(struct valstr *val,
|
|||
val->val_as.sym.off = off;
|
||||
val->val_as.sym.len = len;
|
||||
val->val_as.sym.idx = idx;
|
||||
nstr_exec_val(val, player->cnum, ptr, NSC_NOTYPE);
|
||||
return val; /* FIXME nstr_exec_val() should return VAL */
|
||||
return nstr_exec_val(val, player->cnum, ptr, NSC_NOTYPE);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -53,7 +53,7 @@
|
|||
* WANT. VAL must be coercible. That's the case if a previous
|
||||
* nstr_coerce_val(VAL, WANT, STR) succeeded.
|
||||
*/
|
||||
void
|
||||
struct valstr *
|
||||
nstr_exec_val(struct valstr *val, natid cnum, void *ptr, nsc_type want)
|
||||
{
|
||||
char *memb_ptr;
|
||||
|
@ -158,6 +158,7 @@ nstr_exec_val(struct valstr *val, natid cnum, void *ptr, nsc_type want)
|
|||
}
|
||||
|
||||
val->val_type = valtype;
|
||||
return val;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue