diff options
Diffstat (limited to 'drivers/nrex')
-rw-r--r-- | drivers/nrex/regex.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; |