You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Remove String::find_last (same as rfind)
This commit is contained in:
@@ -66,7 +66,7 @@ Error WebSocketClient::connect_to_url(String p_url, const Vector<String> p_proto
|
||||
}
|
||||
|
||||
// Port
|
||||
p_len = host.find_last(":");
|
||||
p_len = host.rfind(":");
|
||||
if (p_len != -1 && p_len == host.find(":")) {
|
||||
port = host.substr(p_len, host.length() - p_len).to_int();
|
||||
host = host.substr(0, p_len);
|
||||
|
||||
Reference in New Issue
Block a user