avaldin / 42-miniRT

0 stars 0 forks source link

#PARS Double Obj seg #4

Closed tmouche closed 2 months ago

tmouche commented 2 months ago

when a double obj like two sphere (or others) are asked in the input files, the prog seg in the parsing. Indeed it look like the dereferencing of the map pointer in the *_table functions doesnt works as espected. The tab pointers structures is not NULL terminated.

tmouche commented 2 months ago

Issue fixed, for the three function the pointer on the whole struct t_scene is now a parameter instead of the pointer on the structs map. This fixed the deference of the pointer