Fix for the __add_struct() method.
The structure was not being added if struct_index was supplied.
Authored by: bugman 2008-09-27
Parent: [r7417]
Child: [r7419]