diff --git a/src/simulation/elements/SING.cpp b/src/simulation/elements/SING.cpp index f38d7bfcd..36d986306 100644 --- a/src/simulation/elements/SING.cpp +++ b/src/simulation/elements/SING.cpp @@ -83,7 +83,7 @@ int Element_SING::update(UPDATE_FUNC_ARGS) } } spawncount = std::abs(parts[i].tmp); - spawncount = (spawncount>255) ? 3019 : std::pow((int)(spawncount/8), 2)*M_PI; + spawncount = (spawncount>255) ? 3019 : std::pow((double)(spawncount/8), 2)*M_PI; for (int j = 0;j < spawncount; j++) { switch(rand()%3)