fix for broken bsp menu (broken by increasing MAX_TEXTUREDIRS to 1024)