Skip to content

Commit

Permalink
Fix faulty condition in GetPlayerTexture
Browse files Browse the repository at this point in the history
  • Loading branch information
Metadorius committed May 1, 2021
1 parent 7717620 commit 08f99ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DXMainClient/DXGUI/Multiplayer/CnCNet/CnCNetLobby.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1443,7 +1443,7 @@ private Texture2D GetUserTexture(string username)

IRCUser iu = connectionManager.UserList.Find(u => u.Name == username);

if (iu != null && iu.GameID >= 0 || iu.GameID < gameCollection.GameList.Count)
if (iu != null && iu.GameID >= 0 && iu.GameID < gameCollection.GameList.Count)
{
senderGameIcon = gameCollection.GameList[iu.GameID].Texture;
}
Expand Down
4 changes: 2 additions & 2 deletions DXMainClient/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.6.10.0")]
[assembly: AssemblyFileVersion("2.6.10.0")]
[assembly: AssemblyVersion("2.6.10.1")]
[assembly: AssemblyFileVersion("2.6.10.1")]

0 comments on commit 08f99ce

Please sign in to comment.