fixed crash when clearing a message in displaychannel and displayreplay

This commit is contained in:
louis
2014-11-15 09:50:39 +01:00
parent be3b49f695
commit f89c95be3b
3 changed files with 3 additions and 0 deletions

View File

@@ -515,6 +515,7 @@ string cDisplayChannelView::GetChannelSep(const cChannel *channel, bool prev) {
void cDisplayChannelView::DisplayMessage(eMessageType Type, const char *Text) {
if (!Text) {
ClearViewElement(veMessage);
return;
}
map < string, string > stringTokens;

View File

@@ -352,6 +352,7 @@ void cDisplayReplayView::DrawJump(const char *jump) {
void cDisplayReplayView::DrawMessage(eMessageType type, const char *text) {
if (!text) {
ClearViewElement(veMessage);
return;
}
map < string, string > stringTokens;