From 598c82352f055cc755b1986c8d8ecd8314f554e3 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Thu, 15 Nov 2001 19:36:40 +0000 Subject: [PATCH] fix printing of op_c for storeb --- libs/gamecode/engine/pr_exec.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libs/gamecode/engine/pr_exec.c b/libs/gamecode/engine/pr_exec.c index 5f43bedd1..ff3638b59 100644 --- a/libs/gamecode/engine/pr_exec.c +++ b/libs/gamecode/engine/pr_exec.c @@ -88,8 +88,12 @@ PR_PrintStatement (progs_t * pr, dstatement_t *s) else Sys_Printf ("%s", PR_GlobalStringNoContents (pr, s->b)); } - if (op->type_c != ev_void) - Sys_Printf ("%s", PR_GlobalStringNoContents (pr, s->c)); + if (op->type_c != ev_void) { + if (op->type_b == ev_pointer && op->type_c == ev_integer) + Sys_Printf ("%s", PR_GlobalString (pr, s->c, op->type_c)); + else + Sys_Printf ("%s", PR_GlobalStringNoContents (pr, s->c)); + } } Sys_Printf ("\n"); }