Fixed a wrong return value in the procedural map creation thanks to @bmorel. :)