It's crashing on the draw_sprite() function almost certainly. The reason I say that is because it runs fine until I press 'a' in this program:
//blit the buffer
//destroy_bitmap for loop
I'll try what you said, miran.
Yay! I solved it! Thanks guys! =P
Basically, yeah, just had to initialize the entire array.