mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 23:01:50 +00:00
- added missing sc.MustGetString() to 'optional' case of decal parser.
This commit is contained in:
parent
c9e4f120e7
commit
f4a60f29f3
1 changed files with 2 additions and 1 deletions
|
@ -608,6 +608,7 @@ void FDecalLib::ParseGenerator (FScanner &sc)
|
|||
// Get name of generator (actor)
|
||||
sc.MustGetString ();
|
||||
optional = sc.Compare("optional");
|
||||
if (optional) sc.MustGetString();
|
||||
|
||||
type = PClass::FindClass (sc.String);
|
||||
if (type == NULL || type->ActorInfo == NULL)
|
||||
|
@ -626,7 +627,7 @@ void FDecalLib::ParseGenerator (FScanner &sc)
|
|||
decal = ScanTreeForName (sc.String, Root);
|
||||
if (decal == NULL)
|
||||
{
|
||||
sc.ScriptError ("%s has not been defined.", sc.String);
|
||||
if (!optional) sc.ScriptError ("%s has not been defined.", sc.String);
|
||||
}
|
||||
}
|
||||
if (type != NULL)
|
||||
|
|
Loading…
Reference in a new issue