Skip to content

Add additional check for valid clients#180

Open
walliski wants to merge 1 commit into
rogeraabbccdd:masterfrom
walliski:invalid-client-error
Open

Add additional check for valid clients#180
walliski wants to merge 1 commit into
rogeraabbccdd:masterfrom
walliski:invalid-client-error

Conversation

@walliski

Copy link
Copy Markdown

Sometimes IsClientInGame throws the following exception: Client index 0 is invalid. This can happen if the client is not found based on the userid, which means "0" will be returned from GetClientOfUserId. 0 is not a valid client though, so IsClientInGame does not like it.

Sometimes IsClientInGame throws the following exception:
`Client index 0 is invalid`. This can happen if the client is
not found based on the userid, which means "0" will be returned
from GetClientOfUserId. 0 is not a valid client though, so
IsClientInGame does not like it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant