소스 검색

Forgot to correct the ERR_FAIL_COND_V.

Julian Murgia - StraToN 9 년 전
부모
커밋
aec721b61f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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 {
 
-	ERR_FAIL_COND_V( get_capture_count() <= capture, String() );
+	ERR_FAIL_COND_V( get_capture_count() <= capture, -1 );
 
 	return captures[capture].start;