shithub: choc

Download patch

ref: 9908aee5026d4cf74e29eb0536e9a7e532ad386c
parent: 9ba105fa4ee6e68c1bbea9568a36b31fc47cf24c
author: Simon Howard <[email protected]>
date: Sun May 21 16:56:28 EDT 2006

Initialise the table selection on table creation.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 498

--- a/textscreen/txt_table.c
+++ b/textscreen/txt_table.c
@@ -414,6 +414,8 @@
     table->widget.widget_class = &txt_table_class;
     table->widget.visible = 1;
     table->widget.selectable = 1;
+    table->selected_x = 0;
+    table->selected_y = 0;
 }
 
 txt_table_t *TXT_NewTable(int columns)