소스 검색

Merge pull request #25576 from neikeq/tt

Mono: Fix default debugger agent argument never being used
Ignacio Etcheverry 6 년 전
부모
커밋
248dbb2517
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      modules/mono/mono_gd/gd_mono.cpp

+ 1 - 1
modules/mono/mono_gd/gd_mono.cpp

@@ -121,7 +121,7 @@ void gdmono_debug_init() {
 
 	CharString da_args = OS::get_singleton()->get_environment("GODOT_MONO_DEBUGGER_AGENT").utf8();
 
-	if (da_args == "") {
+	if (da_args.length() == 0) {
 		da_args = String("--debugger-agent=transport=dt_socket,address=127.0.0.1:" + itos(da_port) +
 						 ",embedding=1,server=y,suspend=" + (da_suspend ? "y,timeout=" + itos(da_timeout) : "n"))
 						  .utf8();