Original Post
ok i dont know why this isnt working cause it looks fine to me but maybe you guys can help me out this crashes my program: this dosnt: Curr_Monsters is a std::vector and Monsters is a Monster* [] (or Monster** but its an array for clarity) thanks for your help[smile]
for(int i = 0; i < 3; i++)
{
if(Curr_Monsters == NULL)
{
Monster* New_Monster = Monsters[rand()%A_Map->Set.y+A_Map->Set.x];
Curr_Monsters = &New_Monster;
};
};
for(int i = 0; i < 3; i++)
{
if(Curr_Monsters == NULL)
{
Curr_Monsters = &Monsters[rand()%A_Map->Set.y+A_Map->Set.x];
};
};