From 6d024b459e3459f115e45812b193a313c3622e6e Mon Sep 17 00:00:00 2001 From: WarmUpTill Date: Sun, 29 Oct 2017 00:41:31 +0200 Subject: [PATCH] fix of crash when first using the lpugin --- switcher-data-structs.hpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/switcher-data-structs.hpp b/switcher-data-structs.hpp index 30e62ff6..1d1b13f6 100644 --- a/switcher-data-structs.hpp +++ b/switcher-data-structs.hpp @@ -151,7 +151,6 @@ struct IdleData - struct SwitcherData { thread th; @@ -183,7 +182,14 @@ struct SwitcherData FileIOData fileIO; IdleData idleData; vector ignoreIdleWindows; - vector functionNamesByPriority; + vector functionNamesByPriority = vector{ + string(DEFAULT_PRIORITY_0), + string(DEFAULT_PRIORITY_1), + string(DEFAULT_PRIORITY_2), + string(DEFAULT_PRIORITY_3), + string(DEFAULT_PRIORITY_4), + string(DEFAULT_PRIORITY_5), + }; void Thread(); void Start();