tmp64 / BugfixedHL-Rebased

Bugfixed and improved Half-Life
GNU General Public License v3.0
114 stars 26 forks source link

Client: fix GetThisPlayerInfo crash #248

Closed ScriptedSnark closed 1 month ago

ScriptedSnark commented 1 month ago

Decided to test newer builds of BHL and encountered that crash after connecting to some servers. I'm not sure if the crash is fixed completely. At least, after my changes, I can't reproduce it. Tested a little bit with and without and it seems OK.

tmp64 commented 1 month ago

This is #220 but in different parts of the code. I don't think checking for GetThisPlayerInfo() is the right way to fix this but I also don't see a better way. Thanks