From dc074ac0c9acb709f16209999176a5951d616d00 Mon Sep 17 00:00:00 2001 From: Amy <3855802+amylizzle@users.noreply.github.com> Date: Fri, 15 Sep 2023 18:02:01 +0100 Subject: [PATCH] fix defaults for findlasttextex --- OpenDreamRuntime/Procs/Native/DreamProcNativeRoot.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenDreamRuntime/Procs/Native/DreamProcNativeRoot.cs b/OpenDreamRuntime/Procs/Native/DreamProcNativeRoot.cs index 67c54b54f1..c32d09ac95 100644 --- a/OpenDreamRuntime/Procs/Native/DreamProcNativeRoot.cs +++ b/OpenDreamRuntime/Procs/Native/DreamProcNativeRoot.cs @@ -725,8 +725,8 @@ public static DreamValue NativeProc_findlasttext(NativeProc.Bundle bundle, Dream [DreamProc("findlasttextEx")] [DreamProcParameter("Haystack", Type = DreamValueTypeFlag.String)] [DreamProcParameter("Needle", Type = DreamValueTypeFlag.String)] - [DreamProcParameter("Start", Type = DreamValueTypeFlag.Float, DefaultValue = 1)] - [DreamProcParameter("End", Type = DreamValueTypeFlag.Float, DefaultValue = 0)] + [DreamProcParameter("Start", Type = DreamValueTypeFlag.Float, DefaultValue = 0)] + [DreamProcParameter("End", Type = DreamValueTypeFlag.Float, DefaultValue = 1)] public static DreamValue NativeProc_findlasttextEx(NativeProc.Bundle bundle, DreamObject? src, DreamObject? usr) { // TODO This is for handling nulls, check if it works right for other bad types int failCount = 0;