fix dead alert (#4558)

This commit is contained in:
Leon Friedrich
2021-09-03 14:11:12 +10:00
committed by GitHub
parent e3cf87a106
commit c7cfc8a90c
2 changed files with 13 additions and 9 deletions

View File

@@ -61,17 +61,17 @@ namespace Content.Server.Alert
break;
}
if (!IsShowingAlert(msg.AlertType))
if (!IsShowingAlert(msg.Type))
{
Logger.DebugS("alert", "user {0} attempted to" +
" click alert {1} which is not currently showing for them",
player.Name, msg.AlertType);
player.Name, msg.Type);
break;
}
if (!AlertManager.TryGet(msg.AlertType, out var alert))
if (!AlertManager.TryGet(msg.Type, out var alert))
{
Logger.WarningS("alert", "unrecognized encoded alert {0}", msg.AlertType);
Logger.WarningS("alert", "unrecognized encoded alert {0}", msg.Type);
break;
}