Skip to content

Conversation

@jonpas
Copy link

@jonpas jonpas commented Aug 8, 2023

Fixes Zero divisor error when an admin would disconnect.

getUserInfo Returns an empty array if said player is not found.

It can never return nil so check was switched to empty array check, which fixes this error.

Additionally cleaned up user info code in Event Handler for OnUserAdminStateChanged as variables were not actually used anywhere in the function and would also cause an error.

@indig0fox indig0fox merged commit d4f1cce into OCAP2:feature/cba_rework Aug 8, 2023
@jonpas jonpas deleted the fix/disconnect-error branch August 8, 2023 15:49
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.

2 participants