From 95bed868d3e320342ce3d3152f35acd1abe2167f Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 7 Dec 2014 14:46:53 +0100 Subject: [PATCH] - gcc warnings suck... --- src/d_dehacked.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/d_dehacked.cpp b/src/d_dehacked.cpp index 66fe2c58d7..41ad714720 100644 --- a/src/d_dehacked.cpp +++ b/src/d_dehacked.cpp @@ -2248,8 +2248,9 @@ static int PatchStrings (int dummy) ReplaceSpecialChars (holdstring.LockBuffer()); holdstring.UnlockBuffer(); // Account for a discrepancy between Boom's and ZDoom's name for the red skull key pickup message - if (!stricmp(Line1, "GOTREDSKULL")) Line1 = "GOTREDSKUL"; - GStrings.SetString (Line1, holdstring); + const char *ll = Line1; + if (!stricmp(ll, "GOTREDSKULL")) ll = "GOTREDSKUL"; + GStrings.SetString (ll, holdstring); DPrintf ("%s set to:\n%s\n", Line1, holdstring.GetChars()); }