You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This was also resolved somewhere within pull request #32 when closing issue #16! (It's because turnIndex wasn't being updated when players disconnected, so sometimes it pointed to a nonexistent slot in the players array instead of pointing to the current player!)
Undefined variable error from line 300 (in the
getTurnData()
method) when trying to access the name of a player who just disconnected.This bug seems like it might be hard to replicate, but my best guess is that it's a timing issue with the
turnChange
anddisconnect
events.Idea for a solution: Just add another check to the offending function so that it only runs if the variable it's accessing is not null.
The text was updated successfully, but these errors were encountered: