From 3129400101a0caa93b4b1b695d331eb4f2049541 Mon Sep 17 00:00:00 2001 From: Spoike Date: Thu, 9 Jul 2020 12:27:31 +0000 Subject: [PATCH] Fix problem with symbol offsets (read: structs) and inline functions. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5725 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/qclib/qcc_pr_comp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/qclib/qcc_pr_comp.c b/engine/qclib/qcc_pr_comp.c index 969ca22fb..75a835411 100644 --- a/engine/qclib/qcc_pr_comp.c +++ b/engine/qclib/qcc_pr_comp.c @@ -5164,7 +5164,7 @@ static QCC_sref_t QCC_PR_InlineFindDef(struct inlinectx_s *ctx, QCC_sref_t src, { if (src.sym->symbolheader == local) { - return QCC_MakeSRefForce(ctx->arglist[p].sym->symbolheader, src.ofs, src.cast); + return QCC_MakeSRefForce(ctx->arglist[p].sym->symbolheader, ctx->arglist[p].ofs+src.ofs, src.cast); } }