Cleanup errors and misc fixes

This commit is contained in:
hondacrx
2017-11-05 15:48:55 -05:00
parent 76b8c4a10d
commit 0df2703eab
3 changed files with 14 additions and 30 deletions
+1 -1
View File
@@ -561,7 +561,7 @@ namespace Game.Chat
// command.getSession() == NULL only for console
targetAccountId = (isAccountNameGiven) ? Global.AccountMgr.GetId(targetAccountName) : handler.getSelectedPlayer().GetSession().GetAccountId();
if (int.TryParse(isAccountNameGiven ? arg3 : arg2, out int gmRealmID))
if (!int.TryParse(isAccountNameGiven ? arg3 : arg2, out int gmRealmID))
return false;
AccountTypes playerSecurity;