summaryrefslogtreecommitdiff
path: root/protocols/Dummy/src/main.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-01-20 11:57:43 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-01-20 11:57:43 +0300
commit3420f0f1d98d5c7076f4cb9c6ea23b2e4ab462e1 (patch)
tree96364f577cfe62e8bb61f2c7948c545a6a89025c /protocols/Dummy/src/main.cpp
parent3d56e7622af87e2f39ba759ee3761dafc8278d56 (diff)
Dummy: the support for Discord accounts disabled in the trunk version
Diffstat (limited to 'protocols/Dummy/src/main.cpp')
-rw-r--r--protocols/Dummy/src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/Dummy/src/main.cpp b/protocols/Dummy/src/main.cpp
index cac974280c..340b79fae8 100644
--- a/protocols/Dummy/src/main.cpp
+++ b/protocols/Dummy/src/main.cpp
@@ -38,7 +38,7 @@ CMPlugin::CMPlugin() :
ACCPROTOPLUGIN<CDummyProto>("Dummy", pluginInfoEx)
{
int id = db_get_b(0, m_szModuleName, DUMMY_ID_TEMPLATE, -1);
- if (id < 0 || id >= _countof(templates))
+ if (id < 0)
SetUniqueId(ptrA(db_get_sa(0, m_szModuleName, DUMMY_ID_SETTING)));
else
SetUniqueId(templates[id].setting);