- fixed: The first argument of string-based ACS specials was missing a string to name cast.

This commit is contained in:
Christoph Oelckers 2016-11-08 22:36:44 +01:00
parent 7b7b66d8b7
commit 701ffb868b

View file

@ -6409,7 +6409,16 @@ FxExpression *FxActionSpecialCall::Resolve(FCompileContext& ctx)
} }
else if (Special < 0 && i == 0) 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); ScriptPosition.Message(MSG_ERROR, "Name expected for parameter %d", i);
failed = true; failed = true;