Fix TXT_SelectWidgets with NULL spacers.
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 615
This commit is contained in:
parent
ef8bdb1fea
commit
e558fa3f2d
1 changed files with 5 additions and 0 deletions
|
|
@ -577,6 +577,11 @@ int TXT_SelectWidget(TXT_UNCAST_ARG(table), TXT_UNCAST_ARG(widget))
|
|||
|
||||
for (i=0; i<table->num_widgets; ++i)
|
||||
{
|
||||
if (table->widgets[i] == NULL)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
if (table->widgets[i] == widget)
|
||||
{
|
||||
// Found the item! Select it and return.
|
||||
|
|
|
|||
Loading…
Reference in a new issue