From ff96980dda3719e81398bbc5f2e8073c14abb61e Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Sat, 31 Mar 2018 21:45:20 +0300 Subject: [PATCH] Fixed handling of default values in String.Mid() https://forum.zdoom.org/viewtopic.php?t=60047 --- src/scripting/thingdef_data.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scripting/thingdef_data.cpp b/src/scripting/thingdef_data.cpp index 09e28ba55..4560b282e 100644 --- a/src/scripting/thingdef_data.cpp +++ b/src/scripting/thingdef_data.cpp @@ -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); }