about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2008-10-21 18:43:07 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2008-10-21 18:43:07 +0000
commitd15f0cfcf24c260f66345157bc465619247bf0cb (patch)
tree03f845f7adad29435650778b4e42eb5538140a45
parentb49e4da20b25e130cfdce4c861f0bec901f9c057 (diff)
downloadzcatch-d15f0cfcf24c260f66345157bc465619247bf0cb.tar.gz
zcatch-d15f0cfcf24c260f66345157bc465619247bf0cb.zip
fixed editor edit box function
-rw-r--r--src/game/editor/ed_editor.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game/editor/ed_editor.cpp b/src/game/editor/ed_editor.cpp
index 11df0a59..08bb4401 100644
--- a/src/game/editor/ed_editor.cpp
+++ b/src/game/editor/ed_editor.cpp
@@ -208,6 +208,8 @@ int ui_do_edit_box(void *id, const RECT *rect, char *str, int str_size, float fo
 
 		for(int i = 0; i < inp_num_events(); i++)
 		{
+			len = strlen(str);
+			
 			INPUT_EVENT e = inp_get_event(i);
 			char c = e.ch;
 			int k = e.key;