CnCNet / xna-cncnet-client

XNA / MonoGame based client for playing classic Command & Conquer games both online and offline with a CnCNet game spawner.
Other
228 stars 91 forks source link

lan game possible fix #310

Open devo1929 opened 2 years ago

devo1929 commented 2 years ago

There was a reported issue in the #support channel of Discord where someone's client was crashing while hosting a lan game as soon as another player joined. It happens when the "file hash" message is received from the joining user. When this happens, it attempts to find that player in their host's Player list. It attempts to set the verified property to true on that player. However, the client was not able to find the player in the list for some reason and thus a null pointer exception was being thrown.

I provided a temporary new exe to that person and they verified that they were able to play the game with fellow lan members without issue. I don't know if this change will cause any issues though...

github-actions[bot] commented 2 years ago

Nightly build for this pull request: