examples/sphere_hunter: use coorect logic for if condition.

We want a value here which is between 0 and 10. We need a logical AND here. If
we use OR this condition could never be false.

CID: 1327357
This commit is contained in:
Stefan Schmidt 2015-10-20 16:27:10 +02:00
parent 998d007558
commit ab2697af29
1 changed files with 1 additions and 1 deletions

View File

@ -707,7 +707,7 @@ char score_buffer[32];
static char *
_score_get(int sc)
{
if (sc >= 0 || sc <= 10)
if (sc >= 0 && sc <= 10)
{
eina_convert_itoa(sc, score_buffer);
return score_buffer;