initialize fields in constructors

fixes CID 28025 found by Coverity Scan
This commit is contained in:
Christian Beer 2015-10-20 17:57:57 +02:00
parent c4ba2d2ca8
commit 365ca7960f
1 changed files with 2 additions and 0 deletions

View File

@ -457,6 +457,8 @@ STARFIELD::STARFIELD() {
stars = NULL;
zmax = 8;
zmaxinv = 1/zmax;
speed = 0;
nstars = 0;
}
//