about summary refs log tree commit diff
path: root/src/game
diff options
context:
space:
mode:
Diffstat (limited to 'src/game')
-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;