summaryrefslogtreecommitdiffstats
path: root/core/debugger/remote_debugger_peer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/debugger/remote_debugger_peer.cpp')
-rw-r--r--core/debugger/remote_debugger_peer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/debugger/remote_debugger_peer.cpp b/core/debugger/remote_debugger_peer.cpp
index 793db7330f..d38fbc8d91 100644
--- a/core/debugger/remote_debugger_peer.cpp
+++ b/core/debugger/remote_debugger_peer.cpp
@@ -224,7 +224,7 @@ RemoteDebuggerPeer *RemoteDebuggerPeerTCP::create(const String &p_uri) {
uint16_t debug_port = 6007;
if (debug_host.contains(":")) {
- int sep_pos = debug_host.rfind(":");
+ int sep_pos = debug_host.rfind_char(':');
debug_port = debug_host.substr(sep_pos + 1).to_int();
debug_host = debug_host.substr(0, sep_pos);
}