Explorar o código

Forgot to correct the ERR_FAIL_COND_V.

Julian Murgia - StraToN %!s(int64=9) %!d(string=hai) anos
pai
achega
aec721b61f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      drivers/nrex/regex.cpp

+ 1 - 1
drivers/nrex/regex.cpp

@@ -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;