Issues.00052 - lordmundi/wikidoctest GitHub Wiki
00052: correct double pointer in drive_orbital_graphics_elements
Summary: correct double pointer in drive_orbital_graphics_elements
Created: 2007–08–13 15:34
Status: Released
Category: Request
From: smermel
Version: 1.1
Released_In: 2.0
Description:
From smermel in his upgrade notes:
My only beef so far is in model_pack/generic/src/drive_orbital_graphics_elements.c. The C compiler doesn't like the double ** syntax, and nor do I. Technically, it's wrong. And the lvlh_rot_matrix = &(G_OUT→T_inertial_lvlh)
sort of thing is definitely wrong. It works ok because of the nature of pointers, but the proper syntaxes are:
double (* lvlh_rot_matrix)[3];
...
lvlh_rot_matrix = G_OUT->T_inertial_lvlh;