From c317a4cbf3ef424be0d7b5f8060ee43cf4b26c14 Mon Sep 17 00:00:00 2001 From: Edoardo Prezioso Date: Tue, 17 Jan 2017 09:56:45 +0100 Subject: [PATCH] - Fixed: wrong FString 'Replace' action function. The function replaced only the first character of the first argument with the first character of the second argument. --- src/scripting/thingdef_data.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripting/thingdef_data.cpp b/src/scripting/thingdef_data.cpp index b99d6e646..8caa07292 100644 --- a/src/scripting/thingdef_data.cpp +++ b/src/scripting/thingdef_data.cpp @@ -926,7 +926,7 @@ DEFINE_ACTION_FUNCTION(FString, Replace) PARAM_SELF_STRUCT_PROLOGUE(FString); PARAM_STRING(s1); PARAM_STRING(s2); - self->Substitute(*s1, *s2); + self->Substitute(s1, s2); return 0; }