tile.cpp...draw_tiles(Editor &editor)/*-----------------------*/Editor.hpublic: void draw() { draw_bg(); draw_tiles(this); masked_blit(buffer,screen,0,0,0,0,buffer->w,buffer->h); }
I tried using "this" but I get the error:
error C2664: 'draw_tiles' : cannot convert parameter 1 from 'Editor *const ' to 'Editor &'
Can anyone help?