mirror of
https://github.com/godotengine/godot
synced 2024-09-15 22:26:37 +00:00
Forgot to correct the ERR_FAIL_COND_V.
This commit is contained in:
parent
e380ea8fac
commit
aec721b61f
|
@ -71,7 +71,7 @@ String RegEx::get_capture(int capture) const {
|
||||||
|
|
||||||
int RegEx::get_capture_start(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;
|
return captures[capture].start;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue