mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-24 21:21:04 +00:00
Fixed handling of default values in String.Mid()
https://forum.zdoom.org/viewtopic.php?t=60047
This commit is contained in:
parent
4afc538f88
commit
ff96980dda
1 changed files with 2 additions and 2 deletions
|
@ -1204,8 +1204,8 @@ DEFINE_ACTION_FUNCTION(FStringStruct, AppendFormat)
|
||||||
DEFINE_ACTION_FUNCTION(FStringStruct, Mid)
|
DEFINE_ACTION_FUNCTION(FStringStruct, Mid)
|
||||||
{
|
{
|
||||||
PARAM_SELF_STRUCT_PROLOGUE(FString);
|
PARAM_SELF_STRUCT_PROLOGUE(FString);
|
||||||
PARAM_UINT(pos);
|
PARAM_UINT_DEF(pos);
|
||||||
PARAM_UINT(len);
|
PARAM_UINT_DEF(len);
|
||||||
FString s = self->Mid(pos, len);
|
FString s = self->Mid(pos, len);
|
||||||
ACTION_RETURN_STRING(s);
|
ACTION_RETURN_STRING(s);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue