From 7eecbfd08e83afa4d0857145e328f3781e05637c Mon Sep 17 00:00:00 2001 From: Koncord Date: Fri, 8 Dec 2017 22:36:16 +0800 Subject: [PATCH] [Client] Fix saving channel history --- apps/openmw/mwmp/GUI/GUIChat.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/openmw/mwmp/GUI/GUIChat.cpp b/apps/openmw/mwmp/GUI/GUIChat.cpp index 64f0616bb..55adbb442 100644 --- a/apps/openmw/mwmp/GUI/GUIChat.cpp +++ b/apps/openmw/mwmp/GUI/GUIChat.cpp @@ -365,8 +365,8 @@ namespace mwmp void GUIChat::setChannel(ChannelIter it, bool saveHistory) { - if (saveHistory) - channels[currentChannel].channelText = mHistory->getCaption(); + if (saveHistory && !mHistory->getCaption().empty()) + getChannel(currentChannel)->channelText = mHistory->getCaption(); mHistory->setCaption(it->channelText); currentChannel = it->channel;