now the big problem is i get an error on startup on debug mode and not on release mode! this shouldnt be possible should it now? Im using the same code for both of them and running spring exactly the same way.
Im guessing it must be the project settings between debug and release, since on release it wont crash at all (on a metalmap) and on debug mode it will always crash on startup...
it looks like the problem comes from this line:
Code: Select all
for(map<int, string>::const_iterator j = units[i].def->buildOptions.begin(); j != units[i].def->buildOptions.end(); j++)