Skip to content
Permalink
Browse files
From Bugreport: cannot delete characters after clicking on player nam…
  • Loading branch information
titiger committed Dec 10, 2013
1 parent dcada00 commit 3bc5901a01873d6a2f34de809604cd3fc2488965
Showing with 4 additions and 1 deletion.
  1. +4 −1 source/glest_game/game/chat_manager.cpp
@@ -428,8 +428,11 @@ void ChatManager::updateAutoCompleteBuffer() {

void ChatManager::addText(string text) {
int maxTextLenAllowed = (customCB != NULL ? this->maxCustomTextLength : maxTextLenght);
if(editEnabled && (int)text.size() + (int)this->text.size() < maxTextLenAllowed) {
if(editEnabled && (int)text.size() + (int)this->text.size() <= maxTextLenAllowed) {
this->text += text;
for(int i= 0; i<(int)text.size() ; i++){
textCharLength.push_back(1);
}
}
}

0 comments on commit 3bc5901

Please sign in to comment.