qtscript: Fix a typo in structure health calculation. Fixes ticket:3930.