Update src/Star.cpp

Moved the if