[gamecode] Move profile out of the union

It happens to sit over the builtin data pointer and thus messes up
PR_Profile (any attempt to count calls to builtins).
This commit is contained in:
Bill Currie 2022-02-04 21:46:40 +09:00
parent b425f449b6
commit 974af36d13

View file

@ -1255,13 +1255,13 @@ typedef struct {
typedef struct {
pr_int_t first_statement;
pr_int_t numparams;
pr_ulong_t profile;
union {
struct {
dparmsize_t param_size[PR_MAX_PARAMS];
dfunction_t *descriptor;
pr_uint_t params_start;
pr_uint_t locals;
pr_uint_t profile;
};
struct {
// although Ruamoko progs support more than PR_MAX_PARAMS