mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 07:11:54 +00:00
- fixed: FResourceLump::LumpNameSetup passed negative numbers to FString::Truncate for extension-less lump names.
This commit is contained in:
parent
ffea457d81
commit
32e0123e1b
1 changed files with 2 additions and 1 deletions
|
@ -95,7 +95,8 @@ void FResourceLump::LumpNameSetup(FString iname)
|
|||
{
|
||||
long slash = iname.LastIndexOf('/');
|
||||
FString base = (slash >= 0) ? iname.Mid(slash + 1) : iname;
|
||||
base.Truncate(base.LastIndexOf('.'));
|
||||
auto dot = base.LastIndexOf('.');
|
||||
if (dot >= 0) base.Truncate(dot);
|
||||
uppercopy(Name, base);
|
||||
Name[8] = 0;
|
||||
FullName = iname;
|
||||
|
|
Loading…
Reference in a new issue