diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-01-06 01:32:18 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-01-06 01:32:18 +0300 |
commit | 0150901f5d6a7e0a3c7294560fbd8ac7925f419e (patch) | |
tree | d47cbe4a72701f47f917a016d84dee831d702efe | |
parent | 2df2bc1dcd25894101636c3b57061bcf60828273 (diff) | |
download | manaverse-0150901f5d6a7e0a3c7294560fbd8ac7925f419e.tar.gz manaverse-0150901f5d6a7e0a3c7294560fbd8ac7925f419e.tar.bz2 manaverse-0150901f5d6a7e0a3c7294560fbd8ac7925f419e.tar.xz manaverse-0150901f5d6a7e0a3c7294560fbd8ac7925f419e.zip |
Fix crash in chat autocomplete if no current chat tab.
-rw-r--r-- | src/gui/chatwindow.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/chatwindow.cpp b/src/gui/chatwindow.cpp index 5c1286923..0c094f7a8 100644 --- a/src/gui/chatwindow.cpp +++ b/src/gui/chatwindow.cpp @@ -1180,7 +1180,8 @@ void ChatWindow::autoComplete() ChatTab *cTab = static_cast<ChatTab*>(mChatTabs->getSelectedTab()); std::vector<std::string> nameList; - cTab->getAutoCompleteList(nameList); + if (cTab) + cTab->getAutoCompleteList(nameList); newName = autoComplete(nameList, name); if (newName == "" && actorSpriteManager) |