Fixed stack corruption error.

Changed to allocate Map the correct amount of memory space, also
requiring pointers.
Still wasn't compatible with VS2010