From daa18dd018e3658b6dd7f9a6549842d11b26a4bf Mon Sep 17 00:00:00 2001 From: dartraiden Date: Tue, 4 Jun 2019 15:59:00 +0300 Subject: NAS: fix statuses name --- plugins/NewAwaySysMod/src/Properties.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/NewAwaySysMod') diff --git a/plugins/NewAwaySysMod/src/Properties.cpp b/plugins/NewAwaySysMod/src/Properties.cpp index cc8af2b09a..a60b45b70f 100644 --- a/plugins/NewAwaySysMod/src/Properties.cpp +++ b/plugins/NewAwaySysMod/src/Properties.cpp @@ -47,8 +47,8 @@ void ResetSettingsOnStatusChange(const char *szProto = nullptr, int bResetPerson CProtoState::CStatus& CProtoState::CStatus::operator=(int Status) { - _ASSERT(Status >= ID_STATUS_OFFLINE && Status <= ID_STATUS_OUTTOLUNCH); - if (Status < ID_STATUS_OFFLINE || Status > ID_STATUS_MAX) + _ASSERT(Status >= ID_STATUS_MIN && Status <= ID_STATUS_MAX); + if (Status < ID_STATUS_MIN || Status > ID_STATUS_MAX) return *this; // ignore status change if the new status is unknown bool bModified = false; -- cgit v1.2.3