fixes crash in minimap generator for some of maps
Merge pull request #6861 from ihptru/utility-fix

fixes crash in minimap generator for some of maps