mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 07:11:54 +00:00
- fixed: The first argument of string-based ACS specials was missing a string to name cast.
This commit is contained in:
parent
7b7b66d8b7
commit
701ffb868b
1 changed files with 10 additions and 1 deletions
|
@ -6409,7 +6409,16 @@ FxExpression *FxActionSpecialCall::Resolve(FCompileContext& ctx)
|
|||
}
|
||||
else if (Special < 0 && i == 0)
|
||||
{
|
||||
if ((*ArgList)[i]->ValueType != TypeName)
|
||||
if ((*ArgList)[i]->ValueType == TypeString)
|
||||
{
|
||||
(*ArgList)[i] = new FxNameCast((*ArgList)[i]);
|
||||
(*ArgList)[i] = (*ArgList)[i]->Resolve(ctx);
|
||||
if ((*ArgList)[i] == nullptr)
|
||||
{
|
||||
failed = true;
|
||||
}
|
||||
}
|
||||
else if ((*ArgList)[i]->ValueType != TypeName)
|
||||
{
|
||||
ScriptPosition.Message(MSG_ERROR, "Name expected for parameter %d", i);
|
||||
failed = true;
|
||||
|
|
Loading…
Reference in a new issue