about summary refs log tree commit diff
path: root/src/game/client/components
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2011-06-27 16:39:23 +0200
committeroy <Tom_Adams@web.de>2011-06-27 16:39:23 +0200
commit1239150846c2d72764abd30a0ad040bcd30a47f8 (patch)
tree113903f3057b35f271c49bb465cf324b4613664b /src/game/client/components
parentb17a7be2861b35ba8bdee002af67ced965b68025 (diff)
downloadzcatch-1239150846c2d72764abd30a0ad040bcd30a47f8.tar.gz
zcatch-1239150846c2d72764abd30a0ad040bcd30a47f8.zip
fixed password popup UI issue. Closes #583
Diffstat (limited to 'src/game/client/components')
-rw-r--r--src/game/client/components/menus.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/game/client/components/menus.cpp b/src/game/client/components/menus.cpp
index 6ec18ce1..454ef7d5 100644
--- a/src/game/client/components/menus.cpp
+++ b/src/game/client/components/menus.cpp
@@ -251,6 +251,7 @@ int CMenus::DoEditBox(void *pID, const CUIRect *pRect, char *pStr, unsigned StrS
 	{
 		if(!UI()->MouseButton(0))
 		{
+			s_AtIndex = min(s_AtIndex, str_length(pStr));
 			s_DoScroll = false;
 			UI()->SetActiveItem(0);
 		}