Fixes the simple vars list parsing.
Merge pull request #5742 from Menshin/Maploader_fix

Maploader fix