summaryrefslogtreecommitdiff
path: root/drivers/nrex
diff options
context:
space:
mode:
authorJulian Murgia - StraToN <the.straton@gmail.com>2016-02-12 07:50:35 +0100
committerJulian Murgia - StraToN <the.straton@gmail.com>2016-02-12 07:50:35 +0100
commitaec721b61fd8d493e5945475a4c5d783124be3cf (patch)
treebd4f9c4ccaf155a508abaac19b89eda1d7fb596a /drivers/nrex
parente380ea8faca1ea9bbd3338a47ebc81ac01acc9bc (diff)
Forgot to correct the ERR_FAIL_COND_V.
Diffstat (limited to 'drivers/nrex')
-rw-r--r--drivers/nrex/regex.cpp2
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;