summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-08-25 04:31:02 +0300
committerAndrei Karas <akaras@inbox.ru>2016-08-25 04:31:02 +0300
commit1298d827ce0d1e8bf4c470d6cf8177e0b2035385 (patch)
treee6fe40637e02ad7d6f0d3a55b75b6ffed09f60c3
parent898d7acad948b253276b11aa215bb200323116c1 (diff)
downloadplus-1298d827ce0d1e8bf4c470d6cf8177e0b2035385.tar.gz
plus-1298d827ce0d1e8bf4c470d6cf8177e0b2035385.tar.bz2
plus-1298d827ce0d1e8bf4c470d6cf8177e0b2035385.tar.xz
plus-1298d827ce0d1e8bf4c470d6cf8177e0b2035385.zip
Gurard notifications array size with amount of notification enum members.
-rw-r--r--src/notifymanager.cpp2
-rw-r--r--src/resources/notifications.h6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/notifymanager.cpp b/src/notifymanager.cpp
index 12d4e4a00..1cbd755ff 100644
--- a/src/notifymanager.cpp
+++ b/src/notifymanager.cpp
@@ -24,8 +24,6 @@
#include "being/localplayer.h"
-#include "enums/resources/notifytypes.h"
-
#include "net/guildhandler.h"
#include "net/partyhandler.h"
diff --git a/src/resources/notifications.h b/src/resources/notifications.h
index 45a90460e..4e345425b 100644
--- a/src/resources/notifications.h
+++ b/src/resources/notifications.h
@@ -21,15 +21,17 @@
#ifndef RESOURCES_NOTIFICATIONS_H
#define RESOURCES_NOTIFICATIONS_H
-#include "localconsts.h"
+#include "enums/resources/notifytypes.h"
#include "resources/notificationinfo.h"
#include "utils/gettext.h"
+#include "localconsts.h"
+
namespace NotifyManager
{
- static const NotificationInfo notifications[] =
+ static const NotificationInfo notifications[NotifyTypes::TYPE_END] =
{
{"",
"", NotifyFlags::EMPTY},