From 8ad3eb8c4e27b1a965fd5bc84077e702d2454235 Mon Sep 17 00:00:00 2001 From: Sandu Liviu Catalin Date: Mon, 11 Jul 2016 23:58:48 +0300 Subject: [PATCH] Fix an issue with command listeners not retaining the help/info messages. Credits @DrakezZ for spotting the issue. --- source/Command.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/Command.hpp b/source/Command.hpp index d33b6c4c..31bcb611 100644 --- a/source/Command.hpp +++ b/source/Command.hpp @@ -1324,11 +1324,11 @@ public: { if (help) { - m_Help.clear(); + m_Help.assign(help); } else { - m_Help.assign(help); + m_Help.clear(); } } @@ -1347,11 +1347,11 @@ public: { if (info) { - m_Info.clear(); + m_Info.assign(info); } else { - m_Info.assign(info); + m_Info.clear(); } }