From aec721b61fd8d493e5945475a4c5d783124be3cf Mon Sep 17 00:00:00 2001 From: Julian Murgia - StraToN Date: Fri, 12 Feb 2016 07:50:35 +0100 Subject: Forgot to correct the ERR_FAIL_COND_V. --- drivers/nrex/regex.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/nrex') diff --git a/drivers/nrex/regex.cpp b/drivers/nrex/regex.cpp index 223e521725..5d6c9583ef 100644 --- a/drivers/nrex/regex.cpp +++ b/drivers/nrex/regex.cpp @@ -71,7 +71,7 @@ String RegEx::get_capture(int capture) const { int RegEx::get_capture_start(int capture) const { - ERR_FAIL_COND_V( get_capture_count() <= capture, String() ); + ERR_FAIL_COND_V( get_capture_count() <= capture, -1 ); return captures[capture].start; -- cgit v1.2.3