Fix valgrind warning about an uninitialized variable in display3d.c
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7321 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
c8b522c092
commit
74a0ad9a94
|
@ -950,6 +950,8 @@ BOOL init3DView(void)
|
|||
// distance is not saved, so initialise it now
|
||||
distance = START_DISTANCE; // distance
|
||||
|
||||
disp3d_resetView(); // clear player view variables
|
||||
|
||||
if (!initTerrain())
|
||||
{
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue