forked from enlightenment/efl
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:
parent
998d007558
commit
ab2697af29
|
@ -707,7 +707,7 @@ char score_buffer[32];
|
||||||
static char *
|
static char *
|
||||||
_score_get(int sc)
|
_score_get(int sc)
|
||||||
{
|
{
|
||||||
if (sc >= 0 || sc <= 10)
|
if (sc >= 0 && sc <= 10)
|
||||||
{
|
{
|
||||||
eina_convert_itoa(sc, score_buffer);
|
eina_convert_itoa(sc, score_buffer);
|
||||||
return score_buffer;
|
return score_buffer;
|
||||||
|
|
Loading…
Reference in New Issue