mirror of
https://github.com/godotengine/godot.git
synced 2025-10-31 21:51:22 +00:00
GDScript LSP: Fix wrong error checks added in #39385
Reverts `latest_client_id` back to 0, as I misunderstood how the client IDs are assigned and, without further testing and debugging, I can't say if this was a bug or a valid default value. Similarly, a `latest_client_id` of -1 is no longer raising an error. Fixes #39548.
This commit is contained in:
parent
b95611bb86
commit
786f4ada35
2 changed files with 3 additions and 5 deletions
|
|
@ -70,7 +70,7 @@ private:
|
|||
|
||||
HashMap<int, Ref<LSPeer>> clients;
|
||||
Ref<TCP_Server> server;
|
||||
int latest_client_id = -1;
|
||||
int latest_client_id = 0;
|
||||
int next_client_id = 0;
|
||||
|
||||
Ref<GDScriptTextDocument> text_document;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue