Code: Select all
#include <nds.h>
#include <stdio.h>
int main(void) {
consoleDemoInit();
while(1){
scanKeys();
if(keysHeld() & KEY_X)
iprintf("This shouldn't show up");
swiWaitForVBlank();
}
return 0;
}
Code: Select all
memset(&bgState[layer], sizeof(BgState), 0); //line 161
//and
memset(&bgState[layer + 4], sizeof(BgState), 0); //line 188
Code: Select all
memset(&bgState[layer], 0, sizeof(BgState)); //line 161
//and
memset(&bgState[layer + 4], 0, sizeof(BgState)); //line 188