Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 11641


Ignore:
Timestamp:
Dec 4, 2017, 6:36:34 PM (7 years ago)
Author:
remartin
Message:

Changed detail in variable sized Array definition, should now build on Jenkins, too.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/AsteroidMining_HS17/src/modules/asteroidmining/AsteroidMinable.cc

    r11640 r11641  
    336336
    337337    // Randomnised spawning points for the new asteroids
    338     float phi[num] = {0.0}; // assuming that it gets initialised to 0. Add (= {0.0})?
    339     float theta[num] = {0.0};
     338    float phi[num]; // assuming that it gets initialised to 0. Add (= {0.0})?
     339    float theta[num];
    340340    float piG = 3.1415927410125732421875; //pi; // Math.pi ist statisch oder so.
    341341
     
    377377    if(massRem>0){ // Required to avoid array of size 0 or access problems
    378378        int c = massRem;
    379         float probDensity[c] = {0.0};
     379        float probDensity[c];
    380380
    381381        int a = round(massRem/num);
Note: See TracChangeset for help on using the changeset viewer.