c_structdef_cg.pm: Fix an error where we forgot to use the \{"name"\} member of the hash thus resulting in bad code being generated

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5478 4a71c877-e1ca-e34f-864e-861f7616d084
master
Giel van Schijndel 2008-07-10 20:43:26 +00:00
parent c2f5375cb2
commit 82a2aea03f
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ sub printStructFieldType
elsif (/real/) { $$output .= "float "; }
elsif (/bool/) { $$output .= "bool "; }
elsif (/set/) { $$output .= "bool "; }
elsif (/enum/) { $$output .= "${$field}{\"enum\"} "; }
elsif (/enum/) { $$output .= "${${$field}{\"enum\"}}{\"name\"} "; }
elsif (/IMD_model/) { $$output .= "iIMDShape* "; }
elsif (/C-only-field/) { $$output .= "${$field}{\"ctype\"} "; }
else { die "UKNOWN TYPE: $_"; }