Replace most T.Parse with T.TryParse for all user input.

This commit is contained in:
hondacrx
2017-11-05 15:21:29 -05:00
parent 8c863de8a6
commit 8ed446ae7a
40 changed files with 477 additions and 527 deletions
+1 -2
View File
@@ -180,8 +180,7 @@ namespace Game.Chat
if (string.IsNullOrEmpty(idStr))
return false;
uint teamId = uint.Parse(idStr);
if (teamId == 0)
if (!uint.TryParse(idStr, out uint teamId) || teamId == 0)
return false;
Player target;