From 67ff1e6cbb299373d53727d58414f7c8a5dab6bf Mon Sep 17 00:00:00 2001 From: Spoike Date: Thu, 5 Aug 2021 16:49:32 +0000 Subject: [PATCH] Try to fix dotranslate symbols getting b0rked. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6010 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 cb3ede092..6ee66daaf 100644 --- a/engine/qclib/qcc_pr_comp.c +++ b/engine/qclib/qcc_pr_comp.c @@ -8370,7 +8370,7 @@ static QCC_sref_t QCC_MakeStringConstInternal(const char *value, size_t length, char buf[64]; QC_snprintfz(buf, sizeof(buf), "dotranslate_%i", ++dotranslate_count); cn = (void *)qccHunkAlloc (sizeof(QCC_def_t)+sizeof(string_t) + strlen(buf)+1); - cn->name = (char*)((QCC_eval_t*)(cn+1)+1); + cn->name = (char*)((string_t*)(cn+1)+1); strcpy(cn->name, buf); cn->used = true; // cn->referenced = true;