for(int x = 0; x < 3;x++)
{
WorldMap.push_back(vector());
for(int y = 0; y < 3; y++)
{
WorldMap[x].push_back(ms);
char a[50];
sprintf(a,"map%d%d.mp",x,y);
WorldMap[x][y].MapName = a;
}
}
Anyone see something that would make every member of worldmap = "map22.mp"
string problems
This is probably something stupid im doing but here some code
because you''re directly assigning the MapName to be a pointer to the locally declared array.
But... but that''s what HITLER would say!!
But... but that''s what HITLER would say!!
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement