From 8806ec294ffb16a0ebe782eed20838d9cacc058f Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 16 Oct 2010 06:38:42 +0000 Subject: [PATCH] - fixwd some GCC problems with d_iwad.cpp. SVN r2946 (trunk) --- src/d_iwad.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/d_iwad.cpp b/src/d_iwad.cpp index 93ea10837..d03507bf0 100644 --- a/src/d_iwad.cpp +++ b/src/d_iwad.cpp @@ -233,7 +233,8 @@ void FIWadManager::ParseIWadInfo(const char *fn, const char *data, int datasize) // check for lowercase, uppercased first letter and full uppercase on Linux etc. wadname.ToLower(); mIWadNames.Push(wadname); - wadname[0] = toupper(wadname[0]); + wadname.LockBuffer()[0] = toupper(wadname[0]); + wadname.UnlockBuffer(); mIWadNames.Push(wadname); wadname.ToUpper(); mIWadNames.Push(wadname); @@ -331,7 +332,7 @@ int FIWadManager::CheckIWAD (const char *doomwaddir, WadStuff *wads) { FString iwad; - iwad.Format ("%s%s%s", doomwaddir, slash, mIWadNames[i]); + iwad.Format ("%s%s%s", doomwaddir, slash, mIWadNames[i].GetChars()); FixPathSeperator (iwad); if (FileExists (iwad)) {