by BurningSheep » Jul 2, 2002 @ 11:05am
offtopic but it looks kinda strange using unsigned short and PIXEL, why not do:
PIXEL* all_zone_items_p = new PIXEL[300 * 120];
neways, new should return a null pointer when unable to allocate memory, probably is a good habit to check that especially when allocating larger portions of memory (I usually still use malloc and free).
But your program would probably crash much earlier when you're trying to use a null pointer and I don't believe delete would do anything when given a null pointer.
besides this I don't see any errors in the code, so why it's not working... i don't know
Do you want custom Snails levels? Click