diff options
author | Julian Murgia - StraToN <the.straton@gmail.com> | 2016-02-12 07:50:35 +0100 |
---|---|---|
committer | Julian Murgia - StraToN <the.straton@gmail.com> | 2016-02-12 07:50:35 +0100 |
commit | aec721b61fd8d493e5945475a4c5d783124be3cf (patch) | |
tree | bd4f9c4ccaf155a508abaac19b89eda1d7fb596a | |
parent | e380ea8faca1ea9bbd3338a47ebc81ac01acc9bc (diff) |
Forgot to correct the ERR_FAIL_COND_V.
-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; |