foxygit / doom Log in
commit e9376daee45b53ec5a027244c3561fdbd6818fe6
Author:     Simon Howard <fraggle@gmail.com>
AuthorDate: Thu Aug 31 18:09:17 2006 +0000
Commit:     Simon Howard <fraggle@gmail.com>
CommitDate: Thu Aug 31 18:09:17 2006 +0000

    Initialise string input boxes to not editing

    Subversion-branch: /trunk/chocolate-doom
    Subversion-revision: 571
---
 textscreen/txt_inputbox.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/textscreen/txt_inputbox.c b/textscreen/txt_inputbox.c
index 59d62da3..16e423d1 100644
--- a/textscreen/txt_inputbox.c
+++ b/textscreen/txt_inputbox.c
@@ -257,6 +257,7 @@ txt_inputbox_t *TXT_NewInputBox(char **value, int size)
     inputbox->value = value;
     inputbox->size = size;
     inputbox->buffer = malloc(size + 1);
+    inputbox->editing = 0;

     return inputbox;
 }