- fixed: FResourceLump::LumpNameSetup's iname parameter can point to the FullName variable's stringbuffer so any assignment to that variable must be done indirectly.

This commit is contained in:
Christoph Oelckers 2015-04-04 20:52:55 +02:00
parent a5c75c1b1a
commit 6e45c565a0

View file

@ -98,7 +98,8 @@ void FResourceLump::LumpNameSetup(const char *iname)
base = base.Left(base.LastIndexOf('.'));
uppercopy(Name, base);
Name[8] = 0;
FullName = iname;
FString temp = iname; // Note: iname can point to inside FullName's string buffer so we cannot do the assignment directly.
FullName = temp;
// Map some directories to WAD namespaces.
// Note that some of these namespaces don't exist in WADS.