Map = new CBase::sMap[Header.y][Header.x];
I tried using that statement in MSVC, and it's giving me:
CLoad.cpp(26) : error C2540: non-constant expression as array bound
CLoad.cpp(26) : error C2440: '=' : cannot convert from 'CBase::sMap (*)[1]' to 'CBase::sMap *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
Map is a pointer of the sMap datatype there, but it doesn't seem to think it's right? I'm not sure what this means. I want to make a new array because I have to read the size of the data from file first, so if there is anyway I would appreciate it. Thanks!