From fb050bb64042dbfcb10c4ec544d2f31e3b336681 Mon Sep 17 00:00:00 2001 From: vortex Date: Sun, 13 Sep 2009 14:50:20 +0000 Subject: [PATCH] fix broken VM_CL_lightstyle (CSQC): it was using MSG_ReadString instead of value parm git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9188 d7cf8633-e32d-0410-b094-e92efae38249 --- clvm_cmds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clvm_cmds.c b/clvm_cmds.c index 43415228..e107fb39 100644 --- a/clvm_cmds.c +++ b/clvm_cmds.c @@ -551,7 +551,7 @@ static void VM_CL_lightstyle (void) VM_Warning("VM_CL_lightstyle >= MAX_LIGHTSTYLES\n"); return; } - strlcpy (cl.lightstyle[i].map, MSG_ReadString(), sizeof (cl.lightstyle[i].map)); + strlcpy (cl.lightstyle[i].map, c, sizeof (cl.lightstyle[i].map)); cl.lightstyle[i].map[MAX_STYLESTRING - 1] = 0; cl.lightstyle[i].length = (int)strlen(cl.lightstyle[i].map); } -- 2.39.2