From 3420f0f1d98d5c7076f4cb9c6ea23b2e4ab462e1 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 20 Jan 2024 11:57:43 +0300 Subject: Dummy: the support for Discord accounts disabled in the trunk version --- protocols/Dummy/src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'protocols/Dummy/src/main.cpp') 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("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); -- cgit v1.2.3