Jump to content

  • Log In with Google      Sign In   
  • Create Account


#Actualblack_darkness

Posted 21 December 2012 - 12:13 AM

I just don't get what is going wrong.

 

 

I have no idea why when I insert this

 

        Entity empty;
        for (int i=0;i<30;i++){
            for (int j = 0;j<30;j++) {
            mve[i][j] = empty;
            }
        }

 

 

before this

 

        Entity door;
        door.set_warp("house");
        door.set_hero_loc(16,15);
        mve[15][9] = door;

 

 

I get an vector subscript out of range error.

 

What is going on here? angry.png


#1black_darkness

Posted 21 December 2012 - 12:12 AM

I just don't get what is going wrong.

 

 

I have no idea why when I insert this

        Entity empty;
        for (int i=0;i<30;i++){
            for (int j = 0;j<30;j++) {
            mve[j][i] = empty;
            }
        }

 

before this

        Entity door;
        door.set_warp("house");
        door.set_hero_loc(16,15);
        mve[15][9] = door;

 

I get an vector subscript out of range error.

 

What is going on here? angry.png 


PARTNERS