forked from mirrors/0ad
d129ae3cd8
Also improve the code and fix a typo. Based on patch by s0600204, fixes #3378. This was SVN commit r16941.