From d15f0cfcf24c260f66345157bc465619247bf0cb Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Tue, 21 Oct 2008 18:43:07 +0000 Subject: [PATCH] fixed editor edit box function --- src/game/editor/ed_editor.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/game/editor/ed_editor.cpp b/src/game/editor/ed_editor.cpp index 11df0a59a..08bb44014 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;