void sursprite::Add()
{
main.SetSubRect( sf::IntRect( aX[aIndex], aY[aIndex], ( w + aX[aIndex] ), ( h + aY[aIndex] ) ) );
sprite_queue.push_back( *this );
}
At line 3 in the above function, my program crashes. aX & aY are equal to zero. w & h are equal to 32.