diff options
author | rubidium <rubidium@openttd.org> | 2010-12-05 22:21:37 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-12-05 22:21:37 +0000 |
commit | bbaa262b0db6cf3b9ba942e0d0018ea403224c09 (patch) | |
tree | 9b2538ab42d2a5b58d4b346565264c40ad331d39 /src/network | |
parent | 9139a6c858a6af95e2fd9a1abacec520c62a8bd0 (diff) | |
download | openttd-bbaa262b0db6cf3b9ba942e0d0018ea403224c09.tar.xz |
(svn r21406) -Codechange: rename some textbuf related names to make them a bit more descriptive
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/network_chat_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/network_chat_gui.cpp b/src/network/network_chat_gui.cpp index 345c42a54..1d929bbb6 100644 --- a/src/network/network_chat_gui.cpp +++ b/src/network/network_chat_gui.cpp @@ -399,11 +399,11 @@ struct NetworkChatWindow : public QueryStringBaseWindow { /* If we are completing at the begin of the line, skip the ': ' we added */ if (tb_buf == pre_buf) { offset = 0; - length = (tb->size - 1) - 2; + length = (tb->max_bytes - 1) - 2; } else { /* Else, find the place we are completing at */ offset = strlen(pre_buf) + 1; - length = (tb->size - 1) - offset; + length = (tb->max_bytes - 1) - offset; } /* Compare if we have a match */ |