Fixed handling of default values in String.Mid()

https://forum.zdoom.org/viewtopic.php?t=60047
This commit is contained in:
alexey.lysiuk 2018-03-31 21:45:20 +03:00
parent 4afc538f88
commit ff96980dda

View file

@ -1204,8 +1204,8 @@ DEFINE_ACTION_FUNCTION(FStringStruct, AppendFormat)
DEFINE_ACTION_FUNCTION(FStringStruct, Mid)
{
PARAM_SELF_STRUCT_PROLOGUE(FString);
PARAM_UINT(pos);
PARAM_UINT(len);
PARAM_UINT_DEF(pos);
PARAM_UINT_DEF(len);
FString s = self->Mid(pos, len);
ACTION_RETURN_STRING(s);
}