fix a buffer overflow found by address sanitizer

git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@7019 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 015b59294dc0ee701653b45d75f412cf096d2974
Former-commit-id: 6c4011f01433a5866122be5e3398d939e4e78b30
This commit is contained in:
iobyte 2020-05-02 19:11:11 +00:00
parent 9ef82ef64b
commit ee06cd718c

View file

@ -204,8 +204,8 @@ ssgBranch * cGrSkyDome::build(double hscale, double vscale )
lower_ring_cl->add( color );
// force a repaint of the sky colors with ugly defaults
sgVec3 fog_color;
sgSetVec3( fog_color, 1.0, 1.0, 1.0 );
sgVec4 fog_color;
sgSetVec4( fog_color, 1.0, 1.0, 1.0, 0.0 );
repaint( color, fog_color, 0.0, 5000.0 );
// build the ssg scene graph sub tree for the sky and connected