forked from teamnwah/openmw-tes3coop
[Client] Fix saving channel history
This commit is contained in:
parent
1c7330635b
commit
7eecbfd08e
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue